mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
20f0a82b4e
The old test was broken in many ways and kept failing for a number of reasons. Some of them were addressed in the previous commits (the missing HEAD ref being the main one), the other one was that the tests kept stepping on top of each other - as were potentially random users or reviewers using the 'universal' test account. This uses a random one of ten dedicated test accounts, and on top of that uses a random branch name (instead of the fixed email address associated with the account). This also rewrites several of the tests dealing with offline changes to correctly model going offline (but keeps one that directly writes to the local cache). Finally this change also tries to do a much better job cleaning up after itself and not leaving data behind the the next run could stumble over. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
23 lines
502 B
C++
23 lines
502 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef TESTGITSTORAGE_H
|
|
#define TESTGITSTORAGE_H
|
|
|
|
#include <QTest>
|
|
|
|
class TestGitStorage : public QObject {
|
|
Q_OBJECT
|
|
private slots:
|
|
void initTestCase();
|
|
void cleanup();
|
|
void cleanupTestCase();
|
|
|
|
void testGitStorageLocal_data();
|
|
void testGitStorageLocal();
|
|
void testGitStorageCloud();
|
|
void testGitStorageCloudOfflineSync();
|
|
void testGitStorageCloudMerge();
|
|
void testGitStorageCloudMerge2();
|
|
void testGitStorageCloudMerge3();
|
|
};
|
|
|
|
#endif // TESTGITSTORAGE_H
|