|
ZeroErr
|
UnitTest is a class that holds the test configuration. There are several options that can be set to configure the test. More...
#include <unittest.h>

Public Member Functions | |
| 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 Attributes | |
| bool | silent = false |
| bool | run_bench = false |
| bool | run_fuzz = false |
| bool | list_test_cases = false |
| zeroerr::String | list_format = "console" |
| bool | no_color = false |
| bool | log_to_report = false |
| bool | show_help = false |
| bool | invalid_args = false |
| zeroerr::String | correct_output_path |
| zeroerr::String | reporter_name = "console" |
| zeroerr::String | binary |
| zeroerr::String | coverage_output |
| bool | run_coverage = false |
| std::vector< zeroerr::String > | coverage_arguments |
| struct Filters * | filters = nullptr |
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. |
| zeroerr::String zeroerr::UnitTest::binary |
| zeroerr::String zeroerr::UnitTest::correct_output_path |
| std::vector<zeroerr::String> zeroerr::UnitTest::coverage_arguments |
| zeroerr::String zeroerr::UnitTest::coverage_output |
| struct Filters* zeroerr::UnitTest::filters = nullptr |
| bool zeroerr::UnitTest::invalid_args = false |
| zeroerr::String zeroerr::UnitTest::list_format = "console" |
| bool zeroerr::UnitTest::list_test_cases = false |
| bool zeroerr::UnitTest::log_to_report = false |
| bool zeroerr::UnitTest::no_color = false |
| zeroerr::String zeroerr::UnitTest::reporter_name = "console" |
| bool zeroerr::UnitTest::run_bench = false |
| bool zeroerr::UnitTest::run_coverage = false |
| bool zeroerr::UnitTest::run_fuzz = false |
| bool zeroerr::UnitTest::show_help = false |
| bool zeroerr::UnitTest::silent = false |