The unit_test class is unit test base interface.
- Namespace
- xtd::tunit
- Library
- xtd.tunit
- Examples
- create_gtest_like_event_listener.cpp.
◆ unit_test()
◆ repeat_iteration()
| int32 xtd::tunit::unit_test::repeat_iteration |
( |
| ) |
const |
|
noexcept |
◆ repeat_iteration_count()
| int32 xtd::tunit::unit_test::repeat_iteration_count |
( |
| ) |
const |
|
noexcept |
Gets the repeat iteration count.
- Returns
- The repeat iteration count.
◆ repeat_tests()
| bool xtd::tunit::unit_test::repeat_tests |
( |
| ) |
const |
|
noexcept |
Gets a boolean indictaes if there is repeat tests.
- Returns
true is repart test; otherwise false.
◆ test_cases_count()
| size_t xtd::tunit::unit_test::test_cases_count |
( |
| ) |
const |
|
noexcept |
Gets the test cases count.
- Returns
- The test cases count.
◆ test_count()
| size_t xtd::tunit::unit_test::test_count |
( |
| ) |
const |
|
noexcept |
Gets the test count.
- Returns
- The test count.
◆ aborted_test_count()
| size_t xtd::tunit::unit_test::aborted_test_count |
( |
| ) |
const |
|
noexcept |
Gets the aborted test count.
- Returns
- The aborted test count.
◆ aborted_test_names()
Gets the array of aborted test names.
- Returns
- The array of aborted test names.
◆ elapsed_time()
Gets the elapsed time for the execution of all tests in the unit test.
- Returns
- The elapsed time for the execution of all tests in the unit test.
◆ ignored_test_count()
| size_t xtd::tunit::unit_test::ignored_test_count |
( |
| ) |
const |
|
noexcept |
Gets the ignored test count.
- Returns
- The ignored test count.
◆ ignored_test_names()
Gets the array of ignored test names.
- Returns
- The array of ignored test names.
◆ failed_test_count()
| size_t xtd::tunit::unit_test::failed_test_count |
( |
| ) |
const |
|
noexcept |
Gets the failed test count.
- Returns
- The failed test count.
◆ failed_test_names()
Gets the array of failed test names.
- Returns
- The array of failed test names.
◆ succeed_test_count()
| size_t xtd::tunit::unit_test::succeed_test_count |
( |
| ) |
const |
|
noexcept |
Gets the succeed test count.
- Returns
- The succeed test count.
◆ succeed_test_names()
Gets the array of succeed test names.
- Returns
- The array of succeed test names.
◆ run()
| int32 xtd::tunit::unit_test::run |
( |
| ) |
|
|
noexcept |
Runs all tests in this unit_test object and prints the result.
- Returns
- EXIT_SUCCESS (0) if succeed; otherwise return EXIT_FAILURE (1).
◆ count_tests()
| virtual int32 xtd::tunit::unit_test::count_tests |
( |
int32 | count | ) |
|
|
protectedvirtual |
◆ list_tests()
◆ parse_arguments()
| virtual bool xtd::tunit::unit_test::parse_arguments |
( |
const xtd::array< string > & | args | ) |
|
|
protectedvirtual |
Parses the specified arguments.
- Parameters
-
- Returns
true the execution process stops immediately after the analysis of the arguments; otherwise false the execution process continues its execution.
Reimplemented in xtd::tunit::ostream_unit_test.
The documentation for this class was generated from the following file: