Elaboradar  0.1
Membri pubblici | Attributi pubblici | Elenco di tutti i membri
Riferimenti per la struct radarelab::utils::tests::TestCaseabstract

Test case collecting several test methods, and self-registering with the singleton instance of TestRegistry. Continua...

#include <tests.h>

Diagramma delle classi per radarelab::utils::tests::TestCase
radarelab::utils::tests::FixtureTestCase< FIXTURE >

Membri pubblici

void register_tests_once ()
 Idempotent wrapper for register_tests() Continua...
 
virtual void register_tests ()=0
 This will be called before running the test case, to populate it with its test methods. Continua...
 
virtual void setup ()
 Set up the test case before it is run. Continua...
 
virtual void teardown ()
 Clean up after the test case is run. Continua...
 
virtual void method_setup (TestMethodResult &)
 Set up before the test method is run. Continua...
 
virtual void method_teardown (TestMethodResult &)
 Clean up after the test method is run. Continua...
 
virtual TestCaseResult run_tests (TestController &controller)
 Call setup(), run all the tests that have been registered, then call teardown(). Continua...
 
virtual TestMethodResult run_test (TestController &controller, TestMethod &method)
 Run a test method. Continua...
 
TestMethodadd_method (const std::string &name)
 Register a new test method, with the actual test function to be added later. Continua...
 
template<typename ... Args>
TestMethodadd_method (const std::string &name, std::function< void()> test_function)
 Register a new test method. Continua...
 
template<typename ... Args>
TestMethodadd_method (const std::string &name, const std::string &doc, std::function< void()> test_function)
 Register a new test method, including documentation. Continua...
 

Attributi pubblici

std::string name
 Name of the test case. Continua...
 
std::vector< TestMethodmethods
 All registered test methods. Continua...
 
bool tests_registered = false
 Set to true the first time register_tests_once is run. Continua...
 

Descrizione dettagliata

Test case collecting several test methods, and self-registering with the singleton instance of TestRegistry.

Definizione alla linea 521 del file tests.h.


La documentazione per questa struct รจ stata generata a partire dal seguente file: