ZeroErr
|
UnitTest is a class that holds the test configuration. There are several options that can be set to configure the test. 更多...
#include <unittest.h>
Public 成员函数 | |
UnitTest & | parseArgs (int argc, const char **argv) |
Parse the arguments to configure the test. | |
int | run () |
Run the test. | |
bool | run_filter (const TestCase &tc) |
Run the test with the given filter. | |
Public 属性 | |
bool | silent = false |
bool | run_bench = false |
bool | run_fuzz = false |
bool | list_test_cases = false |
bool | no_color = false |
bool | log_to_report = false |
std::string | correct_output_path |
std::string | reporter_name = "console" |
std::string | binary |
struct Filters * | filters |
UnitTest is a class that holds the test configuration. There are several options that can be set to configure the test.
UnitTest & zeroerr::UnitTest::parseArgs | ( | int | argc, |
const char ** | argv | ||
) |
Parse the arguments to configure the test.
argc | The number of arguments. |
argv | The arguments. |
int zeroerr::UnitTest::run | ( | ) |
Run the test.
bool zeroerr::UnitTest::run_filter | ( | const TestCase & | tc | ) |
Run the test with the given filter.
tc | The test case that will be run. |
std::string zeroerr::UnitTest::binary |
std::string zeroerr::UnitTest::correct_output_path |
struct Filters* zeroerr::UnitTest::filters |
bool zeroerr::UnitTest::list_test_cases = false |
bool zeroerr::UnitTest::log_to_report = false |
bool zeroerr::UnitTest::no_color = false |
std::string zeroerr::UnitTest::reporter_name = "console" |
bool zeroerr::UnitTest::run_bench = false |
bool zeroerr::UnitTest::run_fuzz = false |
bool zeroerr::UnitTest::silent = false |