6#include <xtd/reflection/assembly>
8#include <xtd/date_time>
12#include <xtd/optional>
271 friend class
xtd::
tunit::ostream_event_listener;
272 friend class
xtd::
tunit::ostream_unit_test;
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;
286 xtd::
array<
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;
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.hpp:85
The ostream_unit_test class is a specialisation of event_listener class for writing events in std::os...
Definition ostream_event_listener.hpp:23
The ostream_unit_test class is ostream unit test interface.
Definition ostream_unit_test.hpp:22
int32 exit_status() const noexcept
Gets exit status.
bool brief() const noexcept
Gets brief.
int32 repeat_test() const noexcept
Gets repeat tests count.
const xtd::date_time & end_time() const noexcept
Gets unit test end time.
bool break_on_failure() const noexcept
Gets break immediatly on failure.
xtd::string output_json_path() const noexcept
Gets output json path.
bool also_run_ignored_tests() const noexcept
Gets also run ignored test.
bool shuffle_test() const noexcept
Gets shuffle tests.
settings()=default
Creates new instance of settings.
bool output_xml() const noexcept
Gets output xml.
uint32 random_seed() const noexcept
Gets random seed value.
bool show_duration() const noexcept
Gets if show duration for each test.
static xtd::tunit::settings & default_settings() noexcept
Gets default settings instance.
bool output_color() const noexcept
Gets output color.
void repeat_tests(int32 repeat_tests) noexcept
Sets repeat tests count.
bool is_match_test_name(const xtd::string &test_class_name, const xtd::string &test_name) const noexcept
Return true if a specified test class name and specified test name match with the current filter test...
xtd::string output_xml_path() const noexcept
Gets output xml path.
bool enable_stack_trace() const noexcept
Gets stack trace enabled.
bool throw_on_failure() const noexcept
Gets throw on failure.
const xtd::array< string > & filter_tests() const noexcept
Gets filter tests.
bool output_json() const noexcept
Gets output xml.
const xtd::date_time & start_time() const noexcept
Gets unit test start time.
bool count_tests() const noexcept
Gets count tests.
bool gtest_compatibility() const noexcept
Gets google test comaptibility.
bool list_tests() const noexcept
Gets list tests.
The unit_test class is unit test base interface.
Definition unit_test.hpp:29
#define tunit_export_
Define shared library export.
Definition tunit_export.hpp:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
@ path
The xtd::uri::local_path data.
Definition uri_components.hpp:27
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.hpp:17
The xtd::reflection namespace contains types that retrieve information about assemblies,...
Definition assembly.hpp:11
The tunit namespace contains a unit test library.
Definition abort_error.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains tunit_export_ keyword.