The ostream_unit_test class is ostream unit test interface.
Public Constructors | |
| ostream_unit_test (std::ostream &os) noexcept | |
| Create a new console unit test with ostream specified. | |
Public Properties | |
| auto | ostream () -> std::ostream & |
| Gets the ostream used by this instance. | |
Public Methods | |
| auto | count_tests (xtd::int32 count) -> xtd::int32 override |
| Counts the test names contained in the specified tests. | |
| auto | list_tests (const xtd::array< xtd::string > &tests) -> xtd::int32 override |
| Lists the test names contained in the specified tests. | |
| auto | parse_arguments (const xtd::array< xtd::string > &args) -> bool override |
| Parses the specified arguments. | |
| auto | write_help () -> void |
| Write usage help on the ostream of this instance. | |
Additional Inherited Members | |
| unit_test (xtd::uptr< xtd::tunit::event_listener > event_listener) noexcept | |
| Initializes a new instance of xtd::tunit::unit_test with specified xtd::tunit::event_listener. | |
| auto | repeat_iteration () const noexcept -> xtd::int32 |
| Gets the repeat iteration number. A number between 0 and xtd::tunit::unit_test::repeat_iteration_count. | |
| auto | repeat_iteration_count () const noexcept -> xtd::int32 |
| Gets the repeat iteration count. | |
| auto | repeat_tests () const noexcept -> bool |
| Gets a boolean indictaes if there is repeat tests. | |
| auto | test_cases_count () const noexcept -> xtd::usize |
| Gets the test cases count. | |
| auto | test_count () const noexcept -> xtd::usize |
| Gets the test count. | |
| auto | aborted_test_count () const noexcept -> xtd::usize |
| Gets the aborted test count. | |
| auto | aborted_test_names () const noexcept -> xtd::array< xtd::string > |
| Gets the array of aborted test names. | |
| auto | elapsed_time () const noexcept -> xtd::time_span |
| Gets the elapsed time for the execution of all tests in the unit test. | |
| auto | ignored_test_count () const noexcept -> xtd::usize |
| Gets the ignored test count. | |
| auto | ignored_test_names () const noexcept -> xtd::array< xtd::string > |
| Gets the array of ignored test names. | |
| auto | failed_test_count () const noexcept -> xtd::usize |
| Gets the failed test count. | |
| auto | failed_test_names () const noexcept -> xtd::array< xtd::string > |
| Gets the array of failed test names. | |
| auto | succeed_test_count () const noexcept -> xtd::usize |
| Gets the succeed test count. | |
| auto | succeed_test_names () const noexcept -> xtd::array< xtd::string > |
| Gets the array of succeed test names. | |
| auto | run () noexcept -> xtd::int32 |
| Runs all tests in this unit_test object and prints the result. | |
|
explicitnoexcept |
Create a new console unit test with ostream specified.
| os | The ostream to write events. |
|
nodiscard |
Gets the ostream used by this instance.
|
nodiscardoverridevirtual |
Counts the test names contained in the specified tests.
| count | The tests count. |
Reimplemented from xtd::tunit::unit_test.
|
nodiscardoverridevirtual |
Lists the test names contained in the specified tests.
| tests | The list of test names. |
Reimplemented from xtd::tunit::unit_test.
|
nodiscardoverridevirtual |
Parses the specified arguments.
| The | arguments to parse. |
-help argument is passed. Reimplemented from xtd::tunit::unit_test.
| auto xtd::tunit::ostream_unit_test::write_help | ( | ) | -> void |
Write usage help on the ostream of this instance.