Preferences: add some tests

Write a test program to test the log tab in the preferences main menu
I am a bit skeptical about the accuracy of the last section that
delas with testing signals.

Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
willemferguson 2019-12-11 19:50:17 +02:00 committed by Dirk Hohndel
parent 75b5be8f40
commit 42a85dfa7e
3 changed files with 213 additions and 0 deletions

21
tests/testqPrefLog.h Normal file
View file

@ -0,0 +1,21 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef TESTQPREFLOG_H
#define TESTQPREFLOG_H
#include <QObject>
class TestQPrefLog : public QObject {
Q_OBJECT
private slots:
void initTestCase();
void test_struct_get();
void test_set_struct();
void test_set_load_struct();
void test_struct_disk();
void test_multiple();
void test_oldPreferences();
void test_signals();
};
#endif // TESTQPREFGENERAL_H