5#include "../tunit_export.hpp"
9#include <xtd/collections/generic/list>
10#include <xtd/date_time>
18 template<
class test_
class_t>
19 class test_class_attribute;
60 int32 repeat_iteration_count() const noexcept;
65 bool repeat_tests() const noexcept;
69 size_t test_cases_count() const noexcept;
73 size_t test_count() const noexcept;
77 size_t aborted_test_count() const noexcept;
89 size_t ignored_test_count() const noexcept;
97 size_t failed_test_count() const noexcept;
105 size_t succeed_test_count() const noexcept;
144 virtual
bool parse_arguments(const
xtd::
array<
string>& args);
148 template<class test_class_t>
156 xtd::
string get_filename(const
xtd::
string& path);
157 xtd::
string cdata_message_to_xml_string(const
xtd::tunit::
test&
test);
158 xtd::
string escape_path_to_json_string(const
xtd::
string& path);
159 xtd::
string escape_to_json_string(const
xtd::
string& str);
160 xtd::
string escape_to_xml_string(const
xtd::
string& str);
163 xtd::
string name_to_string(const
xtd::
string& name);
166 void unit_test_cleanup();
167 void unit_test_initialize();
168 void write_list_tests_json();
169 void write_list_tests_xml();
170 void write_tests_json();
171 void write_tests_xml();
174 xtd::
string name_ = "AllTests";
177 int32 repeat_iteration_ = 0;
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
Represents a time interval.
Definition time_span.hpp:29
The base class for assert.
Definition base_assert.hpp:30
Represent the event listener class. Unit test call theses events when unit tests are processing.
Definition event_listener.hpp:23
Represents the registered test class.
Definition registered_test_class.hpp:20
Represents a test class attribute.
Definition test_class_attribute.hpp:24
Represents a test class.
Definition test_class.hpp:39
Represents a test method.
Definition test.hpp:29
The unit_test class is unit test base interface.
Definition unit_test.hpp:29
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.hpp:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::tunit::registered_test_class class.
Contains xtd::tunit::settings class.