6#include <xtd/reflection/assembly>
8#include <xtd/date_time>
11#include <xtd/optional>
80 [[nodiscard]] auto
brief() const noexcept ->
bool;
246 friend class
xtd::
tunit::ostream_event_listener;
247 friend class
xtd::
tunit::ostream_unit_test;
253 bool also_run_ignored_tests_ = false;
254 bool break_on_failure_ = false;
256 bool count_tests_ = false;
257 bool enable_stack_trace_ = false;
260 xtd::
string file_name_ =
xtd::
io::path::get_full_path(
xtd::
reflection::assembly::get_executing_assembly().location());
261 xtd::
array<
string> filter_tests_ = {
"*.*"};
262 bool gtest_compatibility_ =
false;
263 bool list_tests_ =
false;
264 bool output_color_ =
true;
265 bool output_json_ =
false;
266 std::optional<xtd::string> output_json_path_;
267 bool output_xml_ =
false;
268 std::optional<xtd::string> output_xml_path_;
271 bool show_duration_ =
true;
272 bool shuffle_tests_ =
false;
274 bool throw_on_failure_ =
false;
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.hpp:83
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
auto enable_stack_trace() const noexcept -> bool
Gets stack trace enabled.
auto repeat_test() const noexcept -> xtd::int32
Gets repeat tests count.
auto filter_tests() const noexcept -> const xtd::array< xtd::string > &
Gets filter tests.
auto show_duration() const noexcept -> bool
Gets if show duration for each test.
auto shuffle_test() const noexcept -> bool
Gets shuffle tests.
auto is_match_test_name(const xtd::string &test_class_name, const xtd::string &test_name) const noexcept -> bool
Return true if a specified test class name and specified test name match with the current filter test...
auto also_run_ignored_tests() const noexcept -> bool
Gets also run ignored test.
static auto default_settings() noexcept -> xtd::tunit::settings &
Gets default settings instance.
settings()=default
Creates new instance of settings.
auto start_time() const noexcept -> const xtd::date_time &
Gets unit test start time.
auto random_seed() const noexcept -> xtd::uint32
Gets random seed value.
auto list_tests() const noexcept -> bool
Gets list tests.
auto brief() const noexcept -> bool
Gets brief.
auto output_xml_path() const noexcept -> xtd::string
Gets output xml path.
auto break_on_failure() const noexcept -> bool
Gets break immediatly on failure.
auto output_json() const noexcept -> bool
Gets output xml.
auto count_tests() const noexcept -> bool
Gets count tests.
auto output_json_path() const noexcept -> xtd::string
Gets output json path.
auto repeat_tests(xtd::int32 value) noexcept -> settings &
Sets repeat tests count.
auto end_time() const noexcept -> const xtd::date_time &
Gets unit test end time.
auto output_xml() const noexcept -> bool
Gets output xml.
auto output_color() const noexcept -> bool
Gets output color.
auto throw_on_failure() const noexcept -> bool
Gets throw on failure.
auto gtest_compatibility() const noexcept -> bool
Gets google test comaptibility.
auto exit_status() const noexcept -> xtd::int32
Gets exit status.
The unit_test class is unit test base interface.
Definition unit_test.hpp:30
#define tunit_export_
Define shared library export.
Definition tunit_export.hpp:13
std::uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
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.