5#include "../tunit_export.h"
6#include <xtd/reflection/assembly>
8#include <xtd/date_time>
12#include <xtd/optional>
19 class ostream_event_listener;
20 class ostream_unit_test;
76 void also_run_ignored_tests(
bool also_run_ignored_tests) noexcept;
80 bool break_on_failure() const noexcept;
84 void break_on_failure(
bool break_on_failure) noexcept;
88 bool brief() const noexcept;
92 void brief(
bool brief) noexcept;
96 bool count_tests() const noexcept;
100 void count_tests(
bool count_tests) noexcept;
105 bool enable_stack_trace() const noexcept;
110 void enable_stack_trace(
bool enable_stack_trace) noexcept;
128 const std::vector<
string>& filter_tests() const noexcept;
132 void filter_tests(const std::vector<
string>& filter_tests) noexcept;
136 bool gtest_compatibility() const noexcept;
140 void gtest_compatibility(
bool gtest_compatibility) noexcept;
144 bool is_match_test_name(const
xtd::
string& test_class_name, const
xtd::
string& test_name) const noexcept;
148 bool list_tests() const noexcept;
152 void list_tests(
bool list_tests) noexcept;
156 bool output_color() const noexcept;
160 void output_color(
bool output_color) noexcept;
164 bool output_json() const noexcept;
168 void output_json(
bool output_json) noexcept;
172 xtd::
string output_json_path() const noexcept;
176 void output_json_path(const
xtd::
string& output_json_path) noexcept;
180 bool output_xml() const noexcept;
184 void output_xml(
bool output_xml) noexcept;
188 xtd::
string output_xml_path() const noexcept;
192 void output_xml_path(const
xtd::
string& output_xml_path) noexcept;
200 void random_seed(
uint32 random_seed) noexcept;
208 void repeat_tests(
int32 repeat_tests) noexcept;
212 bool show_duration() const noexcept;
216 void show_duration(
bool show_duration) noexcept;
220 bool shuffle_test() const noexcept;
224 void shuffle_test(
bool shuffle_test) noexcept;
232 bool throw_on_failure() const noexcept;
236 void throw_on_failure(
bool break_on_failure) noexcept;
276 void start_time(const
xtd::
date_time& start_time) noexcept;
278 bool also_run_ignored_tests_ = false;
279 bool break_on_failure_ = false;
281 bool count_tests_ = false;
282 bool enable_stack_trace_ = false;
284 int32 exit_status_ = EXIT_SUCCESS;
285 xtd::
string file_name_ =
xtd::io::path::get_full_path(
xtd::reflection::assembly::get_executing_assembly().location());
286 std::vector<
string> filter_tests_ = {
"*.*"};
287 bool gtest_compatibility_ =
false;
288 bool list_tests_ =
false;
289 bool output_color_ =
true;
290 bool output_json_ =
false;
291 std::optional<xtd::string> output_json_path_;
292 bool output_xml_ =
false;
293 std::optional<xtd::string> output_xml_path_;
295 int32 repeat_tests_ = 1;
296 bool show_duration_ =
true;
297 bool shuffle_tests_ =
false;
299 bool throw_on_failure_ =
false;
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.h:85
The ostream_unit_test class is a specialisation of event_listener class for writing events in std::os...
Definition ostream_event_listener.h:23
The ostream_unit_test class is ostream unit test interface.
Definition ostream_unit_test.h:22
The settings class contains xtd.tunit settings.
Definition settings.h:30
bool also_run_ignored_tests() const noexcept
Gets also run ignored test.
settings()=default
Creates new instance of settings.
The unit_test class is unit test base interface.
Definition unit_test.h:28
#define tunit_export_
Define shared library export.
Definition tunit_export.h:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.h:23
exit_status
Specifies exit status for the xtd::environment::exit method.
Definition exit_status.h:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10