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::
string> aborted_test_names() const noexcept;
88 size_t ignored_test_count() const noexcept;
92 std::vector<
xtd::
string> ignored_test_names() const noexcept;
96 size_t failed_test_count() const noexcept;
100 std::vector<
xtd::
string> failed_test_names() const noexcept;
104 size_t succeed_test_count() const noexcept;
108 std::vector<
xtd::
string> succeed_test_names() const noexcept;
137 virtual
int32 list_tests(const std::vector<
xtd::
string>& tests);
143 virtual
bool parse_arguments(const std::vector<
string>& args);
147 template <typename test_class_t>
155 xtd::
string get_filename(const
xtd::
string& path);
156 xtd::
string cdata_message_to_xml_string(const
xtd::tunit::
test&
test);
157 xtd::
string escape_path_to_json_string(const
xtd::
string& path);
158 xtd::
string escape_to_json_string(const
xtd::
string& str);
159 xtd::
string escape_to_xml_string(const
xtd::
string& str);
162 xtd::
string name_to_string(const
xtd::
string& name);
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<
string> arguments;
173 xtd::
string name_ = "AllTests";
176 int32 repeat_iteration_ = 0;
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.h:85
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
int32 repeat_iteration() const noexcept
Gets the repeat iteration number. A number between 0 and xtd::tunit::unit_test::repeat_iteration_coun...
unit_test(xtd::uptr< 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,...
unit_test(xtd::uptr< xtd::tunit::event_listener > event_listener) noexcept
Initializes a new instance of xtd::tunit::unit_test with specified xtd::tunit::event_listener.
Contains xtd::tunit::event_listener class.
#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
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
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:29
Contains xtd::tunit::settings class.