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::settings Class Referencefinal

The settings class contains xtd.tunit settings. More...

#include <settings.h>

Public Member Functions

 settings ()=default
 Creates new instance of settings. More...
 
bool also_run_ignored_tests () const noexcept
 Gets also run ignored test. More...
 
void also_run_ignored_tests (bool also_run_ignored_tests) noexcept
 Sets also run ignored test. More...
 
std::chrono::time_point< std::chrono::system_clock > end_time () const noexcept
 Gets unit test end time. More...
 
int exit_status () const noexcept
 Gets exit status. More...
 
void exit_status (int exit_status) noexcept
 Sets exit status. More...
 
const std::string & filter_tests () const noexcept
 Gets filter tests. More...
 
void filter_tests (const std::string &filter_tests) noexcept
 Sets filter tests. More...
 
bool is_match_test_name (const std::string &test_class_name, const std::string &test_name) const noexcept
 Return true if a specified test class name and specified test name match with the current filter tests. More...
 
bool list_tests () const noexcept
 Gets list tests. More...
 
void list_tests (bool list_tests) noexcept
 Sets list tests. More...
 
bool output_color () const noexcept
 Gets output color. More...
 
void output_color (bool output_color) noexcept
 Sets output color. More...
 
bool output_xml () const noexcept
 Gets output xml. More...
 
void output_xml (bool output_xml) noexcept
 Sets output xml. More...
 
std::string output_xml_path () const noexcept
 Gets output xml path. More...
 
void output_xml_path (const std::string &output_xml_path) noexcept
 Sets output xml path. More...
 
int random_seed () const noexcept
 Gets random seed value. More...
 
void random_seed (int random_seed) noexcept
 Sets random seed value. More...
 
int repeaat_test () const noexcept
 Gets repeat tests count. More...
 
void repeat_tests (int repeat_tests) noexcept
 Sets repeat tests count. More...
 
bool show_duration () const noexcept
 Gets if show duration for each test. More...
 
void show_duration (bool show_duration) noexcept
 Sets if show duration for each test. More...
 
bool shuffle_test () const noexcept
 Gets shuffle tests. More...
 
void shuffle_test (bool shuffle_test) noexcept
 Sets shuffle tests. More...
 
std::chrono::time_point< std::chrono::system_clock > start_time () const noexcept
 Gets unit test start time. More...
 

Static Public Member Functions

static xtd::tunit::settingsdefault_settings () noexcept
 Get default settings intance. More...
 

Friends

class unit_test
 

Detailed Description

The settings class contains xtd.tunit settings.


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