5#include "../tunit_export.h"
7#include <xtd/date_time>
8#include <xtd/environment>
47 void also_run_ignored_tests(
bool also_run_ignored_tests) noexcept;
51 bool break_on_failure() const noexcept;
55 bool brief() const noexcept;
59 void brief(
bool brief) noexcept;
63 void break_on_failure(
bool break_on_failure) noexcept;
67 bool throw_on_failure() const noexcept;
71 void throw_on_failure(
bool break_on_failure) noexcept;
75 bool count_tests() const noexcept;
79 void count_tests(
bool count_tests) noexcept;
96 const std::vector<
ustring>& filter_tests() const noexcept;
101 void filter_tests(const std::vector<
ustring>& filter_tests) noexcept;
105 bool gtest_compatibility() const noexcept;
109 void gtest_compatibility(
bool gtest_compatibility) noexcept;
117 bool list_tests() const noexcept;
121 void list_tests(
bool list_tests) noexcept;
125 bool output_color() const noexcept;
129 void output_color(
bool output_color) noexcept;
133 bool output_json() const noexcept;
137 void output_json(
bool output_json) noexcept;
141 bool output_xml() const noexcept;
145 void output_xml(
bool output_xml) noexcept;
153 void output_json_path(const
xtd::
ustring& output_json_path) noexcept;
161 void output_xml_path(const
xtd::
ustring& output_xml_path) noexcept;
166 bool shuffle_test() const noexcept;
171 void shuffle_test(
bool shuffle_test) noexcept;
181 void random_seed(
uint32 random_seed) noexcept;
191 void repeat_tests(
int32 repeat_tests) noexcept;
195 bool show_duration() const noexcept;
199 void show_duration(
bool show_duration) noexcept;
212 bool enable_stack_trace() const noexcept;
217 void enable_stack_trace(
bool enable_stack_trace) noexcept;
236 void start_time(const
xtd::
date_time& start_time) noexcept;
238 bool also_run_ignored_tests_ = false;
239 bool break_on_failure_ = false;
241 bool throw_on_failure_ = false;
242 std::vector<
ustring> filter_tests_;
243 int32 exit_status_ = EXIT_SUCCESS;
244 bool gtest_compatibility_ = false;
245 bool count_tests_ = false;
246 bool list_tests_ = false;
247 bool output_color_ = true;
248 bool output_json_ = false;
249 bool output_xml_ = false;
250 std::optional<
xtd::
ustring> output_json_path_;
253 bool show_duration_ = true;
254 bool shuffle_tests_ = false;
256 int32 repeat_tests_ = 1;
257 bool enable_stack_trace_ = false;
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.h:79
The environment class.
Definition environment.h:117
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:24
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
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define tunit_export_
Define shared library export.
Definition tunit_export.h:13
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131
uint_least32_t uint32
Represents a 32-bit unsigned integer.
Definition types.h:241
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