5#include "../tunit_export.h"
9#include <xtd/date_time>
17 template <
typename test_
class_t>
18 class test_class_attribute;
59 int32 repeat_iteration_count() const noexcept;
64 bool repeat_tests() const noexcept;
68 size_t test_cases_count() const noexcept;
72 size_t test_count() const noexcept;
76 size_t aborted_test_count() const noexcept;
80 std::vector<
xtd::
ustring> aborted_test_names() const noexcept;
88 size_t ignored_test_count() const noexcept;
92 std::vector<
xtd::
ustring> ignored_test_names() const noexcept;
96 size_t failed_test_count() const noexcept;
100 std::vector<
xtd::
ustring> failed_test_names() const noexcept;
104 size_t succeed_test_count() const noexcept;
108 std::vector<
xtd::
ustring> succeed_test_names() const noexcept;
143 virtual
bool parse_arguments(const std::vector<
ustring>& args);
147 template <typename test_class_t>
165 void unit_test_cleanup();
166 void unit_test_initialize();
167 void write_list_tests_json();
168 void write_list_tests_xml();
169 void write_tests_json();
170 void write_tests_xml();
172 std::vector<
ustring> arguments;
176 int32 repeat_iteration_ = 0;
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.h:79
The base class for assert.
Definition base_assert.h:29
Represent the event listener class. Unit test call theses events when unit tests are processing.
Definition event_listener.h:23
Represents the registered test class.
Definition registered_test_class.h:20
Represents a test class attribute.
Definition test_class_attribute.h:24
Represents a test class.
Definition test_class.h:39
Represents a test method.
Definition test.h:29
The unit_test class is unit test base interface.
Definition unit_test.h:28
unit_test(std::unique_ptr< xtd::tunit::event_listener > event_listener) noexcept
Initializes a new instance of xtd::tunit::unit_test with specified xtd::tunit::event_listener.
unit_test(std::unique_ptr< xtd::tunit::event_listener > event_listener, int argc, char *argv[]) noexcept
Initializes a new instance of xtd::tunit::unit_test with specified xtd::tunit::event_listener,...
int32 repeat_iteration() const noexcept
Gets the repeat iteration number. A number between 0 and xtd::tunit::unit_test::repeat_iteration_coun...
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Contains xtd::tunit::event_listener class.
#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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::tunit::registered_test_class class.
Represents a time interval.
Definition time_span.h:26
Contains xtd::tunit::settings class.