Commit c94397ab authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Improve autotest

parent ff4aca93
......@@ -35,7 +35,7 @@ CompareImportFile::~CompareImportFile()
void CompareImportFile::compareFile()
{
GenerateListFileFromArchive archive(mArchiveFilePath);
//qDebug() << " archive " << archive.listFile();
qDebug() << " archive " << archive.listFile();
LoadListFromFile f(mListFilePath + QStringLiteral("/list.txt"));
const QStringList archiveList = archive.listFile();
......
configs/globalnotesettings
configs/knotesrc
information/VERSION_2
information/exportdatatype.xml
......@@ -26,6 +26,7 @@
#include <QDir>
#include <QSignalSpy>
#include <QTest>
//#define REMOVE_CREATED_ZIP_FILE 1
TestExportFile::TestExportFile(QObject *parent)
: QObject(parent)
......@@ -82,7 +83,9 @@ void TestExportFile::start()
compareExportFile.setTempFilePath(mTemporaryFile);
compareExportFile.setListFilePath(QLatin1String(mPathConfig));
compareExportFile.compareFiles();
#ifdef REMOVE_CREATED_ZIP_FILE
QVERIFY(QFile(mTemporaryFile).remove());
#endif
}
ArchiveStorage *TestExportFile::archiveStorage() const
......
......@@ -30,7 +30,7 @@ TestImportFile::TestImportFile(const QString &archivePath, QObject *parent)
: QObject(parent)
, mArchivePath(archivePath + QStringLiteral("archive.zip"))
{
mArchiveStorage = new ArchiveStorage(archivePath, this);
mArchiveStorage = new ArchiveStorage(mArchivePath, this);
Q_ASSERT(mArchiveStorage->openArchive(false));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment