5 #include "../tunit_export.h" 7 #include <xtd/date_time> 8 #include <xtd/environment> 46 bool also_run_ignored_tests()
const noexcept;
50 void also_run_ignored_tests(
bool also_run_ignored_tests) noexcept;
54 bool break_on_failure()
const noexcept;
58 bool brief()
const noexcept;
62 void brief(
bool brief) noexcept;
66 void break_on_failure(
bool break_on_failure) noexcept;
70 bool throw_on_failure()
const noexcept;
74 void throw_on_failure(
bool break_on_failure) noexcept;
78 bool count_tests()
const noexcept;
82 void count_tests(
bool count_tests) noexcept;
99 const std::vector<ustring>& filter_tests()
const noexcept;
104 void filter_tests(
const std::vector<ustring>& filter_tests) noexcept;
108 bool gtest_compatibility()
const noexcept;
112 void gtest_compatibility(
bool gtest_compatibility) noexcept;
120 bool list_tests()
const noexcept;
124 void list_tests(
bool list_tests) noexcept;
128 bool output_color()
const noexcept;
132 void output_color(
bool output_color) noexcept;
136 bool output_json()
const noexcept;
140 void output_json(
bool output_json) noexcept;
144 bool output_xml()
const noexcept;
148 void output_xml(
bool output_xml) noexcept;
156 void output_json_path(
const xtd::ustring& output_json_path) noexcept;
164 void output_xml_path(
const xtd::ustring& output_xml_path) noexcept;
169 bool shuffle_test()
const noexcept;
174 void shuffle_test(
bool shuffle_test) noexcept;
179 uint32 random_seed()
const noexcept;
184 void random_seed(
uint32 random_seed) noexcept;
189 int32 repeat_test()
const noexcept;
194 void repeat_tests(
int32 repeat_tests) noexcept;
198 bool show_duration()
const noexcept;
202 void show_duration(
bool show_duration) noexcept;
215 bool enable_stack_trace()
const noexcept;
220 void enable_stack_trace(
bool enable_stack_trace) noexcept;
233 bool also_run_ignored_tests_ =
false;
234 bool break_on_failure_ =
false;
236 bool throw_on_failure_ =
false;
237 std::vector<ustring> filter_tests_;
238 int32 exit_status_ = EXIT_SUCCESS;
239 bool gtest_compatibility_ =
false;
240 bool count_tests_ =
false;
241 bool list_tests_ =
false;
242 bool output_color_ =
true;
243 bool output_json_ =
false;
244 bool output_xml_ =
false;
248 bool show_duration_ =
true;
249 bool shuffle_tests_ =
false;
251 int32 repeat_tests_ = 1;
252 bool enable_stack_trace_ =
false;
The ostream_unit_test class is ostream unit test interface.
Definition: ostream_unit_test.h:22
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
The ostream_unit_test class is a specialisation of event_listener class for writing events in std::os...
Definition: ostream_event_listener.h:23
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
exit_status
Specifies exit status for the xtd::environment::exit method.
Definition: exit_status.h:18
Represents an instant in time, typically expressed as a date and time of day.
Definition: date_time.h:78
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
uint_least32_t uint32
Represents a 32-bit unsigned integer.
Definition: types.h:239
static xtd::ustring get_full_path(const xtd::ustring &path)
Returns the absolute path for the specified path string.
The unit_test class is unit test base interface.
Definition: unit_test.h:35
The settings class contains xtd.tunit settings.
Definition: settings.h:23
static xtd::collections::specialized::string_vector get_command_line_args()
Returns a string array containing the command-line arguments for the current process.