The console_unit_test class is console unit test interface.
Constructors | |
console_unit_test () | |
Create a new console unit test. More... | |
console_unit_test (int argc, char *argv[]) | |
Create a new console unit test with argv specified and argc specified. More... | |
Additional Inherited Members | |
![]() | |
ostream_unit_test (std::ostream &os) noexcept | |
Create a new console unit test with ostream specified. More... | |
ostream_unit_test (std::ostream &os, int argc, char *argv[]) | |
Create a new console unit test with ostream specified, argv specified and argc specified. More... | |
std::ostream & | ostream () |
Gets the ostream used by this instance. More... | |
int | count_tests (int32 count) override |
Counts the test names contained in the specified tests. More... | |
int | list_tests (const std::vector< xtd::ustring > &tests) override |
Lists the test names contained in the specified tests. More... | |
bool | parse_arguments (const std::vector< xtd::ustring > &args) override |
Parses the specified arguments. More... | |
void | write_help () |
Write usage help on the ostream of this instance. More... | |
![]() | |
unit_test (std::unique_ptr< xtd::tunit::event_listener > event_listener) noexcept | |
Initializes a new instance of xtd::tunit::unit_test with specified xtd::tunit::event_listener. More... | |
unit_test (std::unique_ptr< xtd::tunit::event_listener > event_listener, int argc, char *argv[]) noexcept | |
Initializes a new instance of xtd::tunit::unit_test with specified xtd::tunit::event_listener, argument counts and arguments array. More... | |
int32 | repeat_iteration () const noexcept |
Gets the repeat iteration number. A number between 0 and xtd::tunit::unit_test::repeat_iteration_count. More... | |
int32 | repeat_iteration_count () const noexcept |
Gets the repeat iteration count. More... | |
bool | repeat_tests () const noexcept |
Gets a boolean indictaes if there is repeat tests. More... | |
size_t | test_cases_count () const noexcept |
Gets the test cases count. More... | |
size_t | test_count () const noexcept |
Gets the test count. More... | |
size_t | aborted_test_count () const noexcept |
Gets the aborted test count. More... | |
std::vector< xtd::ustring > | aborted_test_names () const noexcept |
Gets the array of aborted test names. More... | |
std::chrono::milliseconds | elapsed_time () const noexcept |
Gets the elapsed time for the execution of all tests in the unit test. More... | |
size_t | ignored_test_count () const noexcept |
Gets the ignored test count. More... | |
std::vector< xtd::ustring > | ignored_test_names () const noexcept |
Gets the array of ignored test names. More... | |
size_t | failed_test_count () const noexcept |
Gets the failed test count. More... | |
std::vector< xtd::ustring > | failed_test_names () const noexcept |
Gets the array of failed test names. More... | |
size_t | succeed_test_count () const noexcept |
Gets the succeed test count. More... | |
std::vector< xtd::ustring > | succeed_test_names () const noexcept |
Gets the array of succeed test names. More... | |
int32 | run () |
Runs all tests in this unit_test object and prints the result. More... | |
![]() |
xtd::tunit::console_unit_test::console_unit_test | ( | ) |
Create a new console unit test.
xtd::tunit::console_unit_test::console_unit_test | ( | int | argc, |
char * | argv[] | ||
) |
Create a new console unit test with argv specified and argc specified.
argc | Argument count from main method. |
argv | Arguments array from main method. |