Teuchos - Trilinos Tools Package
Version of the Day
|
Singleton unit testing repository. More...
#include <Teuchos_UnitTestRepository.hpp>
Static Public Member Functions | |
static CommandLineProcessor & | getCLP () |
Return the CLP to add options to. More... | |
static void | setGloballyReduceTestResult (const bool globallyReduceUnitTestResult) |
Set if the unit tests should reduce pass/fail across processes. More... | |
static bool | getGloballyReduceTestResult () |
Get if the unit tests should reduce across processes or not. More... | |
static bool | runUnitTests (FancyOStream &out) |
Run the registered unit tests. More... | |
static int | runUnitTestsFromMain (int argc, char *argv[]) |
Run the unit tests from main() passing in (argc, argv). More... | |
static void | addUnitTest (UnitTestBase *unitTest, const std::string groupName, const std::string testName) |
Add an unit test (called indirectly through macros. More... | |
static bool | verboseUnitTests () |
Returns if unit tests are verbose or not. More... | |
Singleton unit testing repository.
This class is the universal driver for unit testing. This class should be almost completely invisible to a user of the test harness. The main interaction is through command-line arguments set and processed by calling runUnitTestsFromMain() from a main() function. See –help for details of the options. For a more general overview, see Unit Testing Support.
Definition at line 41 of file Teuchos_UnitTestRepository.hpp.
|
static |
Return the CLP to add options to.
Definition at line 176 of file Teuchos_UnitTestRepository.cpp.
|
static |
Set if the unit tests should reduce pass/fail across processes.
Definition at line 182 of file Teuchos_UnitTestRepository.cpp.
|
static |
Get if the unit tests should reduce across processes or not.
Definition at line 189 of file Teuchos_UnitTestRepository.cpp.
|
static |
Run the registered unit tests.
Definition at line 195 of file Teuchos_UnitTestRepository.cpp.
|
static |
Run the unit tests from main() passing in (argc, argv).
Definition at line 376 of file Teuchos_UnitTestRepository.cpp.
|
static |
Add an unit test (called indirectly through macros.
unittest [in] The unit test. NOTE: the memory of *unittest must be persistant.
Definition at line 404 of file Teuchos_UnitTestRepository.cpp.
|
static |
Returns if unit tests are verbose or not.
This can be used in individual unit tests that need to know if the unit test harness is running in verbose mode. This is useful when the unit test's std::ostream 'out' can not be printed to (for example, when Fortran is testing is running).
Definition at line 413 of file Teuchos_UnitTestRepository.cpp.