The test front-end for unit tests implementing Qtilities::Testing::Interfaces::ITestable.
The Qtilities::Testing::TestFrontend class allows you to run any tests implementing Qtilities::Testing::Interfaces::ITestable.
To construct a testing front-end is easy, for example:
TestFrontend testFrontend(argc,argv);
#ifdef QTILITIES_TESTING
TestVersionNumber* testVersionNumber = new TestVersionNumber;
testFrontend.addTest(testVersionNumber,QtilitiesCategory("Qtilities::Core","::"));
TestSubjectIterator* testSubjectIterator = new TestSubjectIterator;
testFrontend.addTest(testSubjectIterator,QtilitiesCategory("Qtilities::Core","::"));
TestTreeIterator* testTreeIterator = new TestTreeIterator;
testFrontend.addTest(testTreeIterator,QtilitiesCategory("Qtilities::Core","::"));
TestObserver* testObserver = new TestObserver;
testFrontend.addTest(testObserver,QtilitiesCategory("Qtilities::Core","::"));
TestObserverRelationalTable* testObserverRelationalTable = new TestObserverRelationalTable;
testFrontend.addTest(testObserverRelationalTable,QtilitiesCategory("Qtilities::Core","::"));
TestExporting* testExporting = new TestExporting;
testFrontend.addTest(testExporting,QtilitiesCategory("Qtilities::General","::"));
BenchmarkTests* benchmarkTests = new BenchmarkTests;
testFrontend.addTest(benchmarkTests,QtilitiesCategory("Qtilities::Benchmarking","::"));
#endif
testFrontend.show();
The resulting test front-end looks like this:
Test Frontend With Some Tests
This class was added in Qtilities v1.0.