xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.
xtd::tunit::ostream_unit_test Class Reference

The ostream_unit_test class is ostream unit test interface. More...

#include <ostream_unit_test.h>

Inheritance diagram for xtd::tunit::ostream_unit_test:
xtd::tunit::unit_test xtd::tunit::console_unit_test

Public Member Functions

 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...
 
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 list_tests (const std::vector< std::string > &tests) override
 
bool parse_arguments (const std::vector< std::string > &args) override
 
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. More...
 
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
 
void write_help ()
 

Detailed Description

The ostream_unit_test class is ostream unit test interface.

Remarks
All messages are writting on the specified ostream.

The documentation for this class was generated from the following file: