subsurface/tests/testgitstorage.h
Jeremie Guichard 5caa9b23fe Use QTest cleanup method for proper test shutdown
In case of QCOMPARE failure, code following the comparison
is not executed, this results in application state not being
properly resorted and often gives several test failures,
when only one test really fails.
Using QTest cleanup method allows restoring proper state,
before next test is executed.

Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
2017-03-04 12:03:33 -08:00

22 lines
441 B
C++

#ifndef TESTGITSTORAGE_H
#define TESTGITSTORAGE_H
#include <QTest>
class TestGitStorage : public QObject
{
Q_OBJECT
private slots:
void initTestCase();
void cleanup();
void testGitStorageLocal_data();
void testGitStorageLocal();
void testGitStorageCloud();
void testGitStorageCloudOfflineSync();
void testGitStorageCloudMerge();
void testGitStorageCloudMerge2();
void testGitStorageCloudMerge3();
};
#endif // TESTGITSTORAGE_H