![]() |
tunit - Reference Guide
1.0.0
Modern c++17 unit testing framework on Windows, macOS, Linux, iOS and android.
|
The settings class contains tunit settings. More...
#include <settings.h>
Public Member Functions | |
| settings ()=default | |
| Creates new instance of settings. More... | |
| bool | also_run_ignored_tests () const noexcept |
| Gets also run ignored test. More... | |
| void | also_run_ignored_tests (bool also_run_ignored_tests) noexcept |
| Sets also run ignored test. More... | |
| std::chrono::time_point< std::chrono::system_clock > | end_time () const noexcept |
| Gets unit test end time. More... | |
| int | exit_status () const noexcept |
| Gets exit status. More... | |
| void | exit_status (int exit_status) noexcept |
| Sets exit status. More... | |
| const std::string & | filter_tests () const noexcept |
| Gets filter tests. More... | |
| void | filter_tests (const std::string &filter_tests) noexcept |
| Sets filter tests. More... | |
| bool | is_match_test_name (const std::string &test_class_name, const std::string &test_name) const noexcept |
| Return true if a specified test class name and specified test name match with the current filter tests. More... | |
| bool | list_tests () const noexcept |
| Gets list tests. More... | |
| void | list_tests (bool list_tests) noexcept |
| Sets list tests. More... | |
| bool | output_color () const noexcept |
| Gets output color. More... | |
| void | output_color (bool output_color) noexcept |
| Sets output color. More... | |
| bool | output_xml () const noexcept |
| Gets output xml. More... | |
| void | output_xml (bool output_xml) noexcept |
| Sets output xml. More... | |
| std::string | output_xml_path () const noexcept |
| Gets output xml path. More... | |
| void | output_xml_path (const std::string &output_xml_path) noexcept |
| Sets output xml path. More... | |
| int | random_seed () const noexcept |
| Gets random seed value. More... | |
| void | random_seed (int random_seed) noexcept |
| Sets random seed value. More... | |
| int | repeaat_test () const noexcept |
| Gets repeat tests count. More... | |
| void | repeat_tests (int repeat_tests) noexcept |
| Sets repeat tests count. More... | |
| bool | show_duration () const noexcept |
| Gets if show duration for each test. More... | |
| void | show_duration (bool show_duration) noexcept |
| Sets if show duration for each test. More... | |
| bool | shuffle_test () const noexcept |
| Gets shuffle tests. More... | |
| void | shuffle_test (bool shuffle_test) noexcept |
| Sets shuffle tests. More... | |
| std::chrono::time_point< std::chrono::system_clock > | start_time () const noexcept |
| Gets unit test start time. More... | |
Static Public Member Functions | |
| static tunit::settings & | default_settings () noexcept |
| Get default settings intance. More... | |
Friends | |
| class | unit_test |
The settings class contains tunit settings.
|
default |
Creates new instance of settings.
|
inlinenoexcept |
Gets also run ignored test.
|
inlinenoexcept |
Sets also run ignored test.
| also_run_ignored_tests | true if also run ignored test; otherwise false. |
|
inlinestaticnoexcept |
Get default settings intance.
|
inlinenoexcept |
Gets unit test end time.
|
inlinenoexcept |
Gets exit status.
|
inlinenoexcept |
Sets exit status.
| exit_status | exit status. |
|
inlinenoexcept |
Gets filter tests.
|
inlinenoexcept |
Sets filter tests.
| filter_tests | filter tests. |
|
inlinenoexcept |
Return true if a specified test class name and specified test name match with the current filter tests.
|
inlinenoexcept |
Gets list tests.
|
inlinenoexcept |
Sets list tests.
| list_tests | true if list tests; otherwise false. |
|
inlinenoexcept |
Gets output color.
|
inlinenoexcept |
Sets output color.
| output_color | true for colored output; otherwise false. |
|
inlinenoexcept |
Gets output xml.
|
inlinenoexcept |
Sets output xml.
| output_xml | true for generate xml report; otherwise false. |
|
inlinenoexcept |
Gets output xml path.
|
inlinenoexcept |
Sets output xml path.
| output_xml_path | Output xml path. |
|
inlinenoexcept |
Gets random seed value.
|
inlinenoexcept |
Sets random seed value.
| random_seed | Random seed value. |
|
inlinenoexcept |
Gets repeat tests count.
|
inlinenoexcept |
Sets repeat tests count.
| repeat_tests | Repeat test count. |
|
inlinenoexcept |
Gets if show duration for each test.
|
inlinenoexcept |
Sets if show duration for each test.
| show_duration | true if show duration for each test; otherwise false. |
|
inlinenoexcept |
Gets shuffle tests.
|
inlinenoexcept |
Sets shuffle tests.
| shuffle_test | Shuffle test. |
|
inlinenoexcept |
Gets unit test start time.