#include <ostream_unit_test.h>
The ostream_unit_test class is ostream unit test interface.
- Namespace
- xtd::tunit
- Library
- xtd.tunit
Inherits xtd::tunit::unit_test.
Inherited by xtd::tunit::console_unit_test.
|
| ostream_unit_test (std::ostream &os) noexcept |
| Create a new console unit test with ostream specified.
|
|
| ostream_unit_test (std::ostream &os, int argc, char *argv[]) |
| Create a new console unit test with ostream specified, argv specified and argc specified.
|
|
int | list_tests (const std::vector< std::string > &tests) override |
|
std::ostream & | ostream () |
| Gets the ostream used by this instance.
|
|
bool | parse_arguments (const std::vector< std::string > &args) override |
|
void | write_help () |
|
| unit_test (std::unique_ptr< xtd::tunit::event_listener > event_listener) noexcept |
|
| unit_test (std::unique_ptr< xtd::tunit::event_listener > event_listener, int argc, char *argv[]) noexcept |
|
size_t | aborted_test_count () const noexcept |
|
std::vector< std::string > | aborted_test_names () const noexcept |
|
std::chrono::milliseconds | elapsed_time () const noexcept |
|
size_t | failed_test_count () const noexcept |
|
std::vector< std::string > | failed_test_names () const noexcept |
|
size_t | ignored_test_count () const noexcept |
|
std::vector< std::string > | ignored_test_names () const noexcept |
|
int | repeat_iteration () const noexcept |
|
int | repeat_iteration_count () const noexcept |
|
bool | repeat_tests () const noexcept |
|
int | run () |
| Runs all tests in this UnitTest object and prints the result.
|
|
size_t | succeed_test_count () const noexcept |
|
std::vector< std::string > | succeed_test_names () const noexcept |
|
size_t | test_cases_count () const noexcept |
|
size_t | test_count () const noexcept |
|
|
virtual int | list_tests (const std::vector< std::string > &tests) |
|
virtual bool | parse_arguments (const std::vector< std::string > &args) |
|
◆ ostream_unit_test() [1/2]
xtd::tunit::ostream_unit_test::ostream_unit_test |
( |
std::ostream & |
os | ) |
|
|
inlineexplicitnoexcept |
Create a new console unit test with ostream specified.
- Parameters
-
os | The ostream to write events. |
◆ ostream_unit_test() [2/2]
xtd::tunit::ostream_unit_test::ostream_unit_test |
( |
std::ostream & |
os, |
|
|
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
inline |
Create a new console unit test with ostream specified, argv specified and argc specified.
- Parameters
-
os | The ostream to write events. |
argc | Argument count from main method. |
argv | Arguments array from main method. |
◆ list_tests()
int xtd::tunit::ostream_unit_test::list_tests |
( |
const std::vector< std::string > & |
tests | ) |
|
|
inlineoverridevirtual |
◆ ostream()
std::ostream & xtd::tunit::ostream_unit_test::ostream |
( |
| ) |
|
|
inline |
Gets the ostream used by this instance.
- Returns
- The ostream used by this instance.
- Warning
- Used it only if you need to write specific user messages. If you change or redirect it when tests running, the unit test output result will be indeterminate.
◆ parse_arguments()
bool xtd::tunit::ostream_unit_test::parse_arguments |
( |
const std::vector< std::string > & |
args | ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: