NorMIT-nav  22.09
An IGT application
cisstTestMain.cpp File Reference
#include <cppunit/Test.h>
#include <cppunit/TestSuite.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/extensions/RepeatedTest.h>
#include <cppunit/ui/text/TestRunner.h>
#include <QApplication>
#include "cxApplication.h"
#include <string>
#include <list>
#include <iostream>
#include "cisstTestParameters.h"

Go to the source code of this file.

Functions

CppUnit::Test * FindTestInTestSuite (CppUnit::Test *tests, const std::string &name)
 
CppUnit::Test * InstantiateTests (const cisstTestParameters::TestNameContainerType &testNames)
 
int ListAllTestsInTestSuite (CppUnit::Test *tests)
 
int GenerateCTestFile (CppUnit::Test *tests, const std::string &programName)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ FindTestInTestSuite()

CppUnit::Test* FindTestInTestSuite ( CppUnit::Test *  tests,
const std::string &  name 
)

Definition at line 42 of file cisstTestMain.cpp.

◆ GenerateCTestFile()

int GenerateCTestFile ( CppUnit::Test *  tests,
const std::string &  programName 
)

Recursion used to fill the CMake/ctest compatible list of tests.

Definition at line 121 of file cisstTestMain.cpp.

◆ InstantiateTests()

CppUnit::Test* InstantiateTests ( const cisstTestParameters::TestNameContainerType testNames)

Definition at line 74 of file cisstTestMain.cpp.

◆ ListAllTestsInTestSuite()

int ListAllTestsInTestSuite ( CppUnit::Test *  tests)

List all available tests in a given test suite.

Definition at line 98 of file cisstTestMain.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

custom app handling exceptions

Definition at line 155 of file cisstTestMain.cpp.