Public Constructors | |
| settings ()=default | |
| Creates new instance of settings. | |
Public Properties | |
| auto | also_run_ignored_tests () const noexcept -> bool |
| Gets also run ignored test. | |
| auto | also_run_ignored_tests (bool value) noexcept -> settings & |
| Sets also run ignored test. | |
| auto | break_on_failure () const noexcept -> bool |
| Gets break immediatly on failure. | |
| auto | break_on_failure (bool value) noexcept -> settings & |
| Sets break immediatly on failure. | |
| auto | brief () const noexcept -> bool |
| Gets brief. | |
| auto | brief (bool value) noexcept -> settings & |
| Sets brief. | |
| auto | count_tests () const noexcept -> bool |
| Gets count tests. | |
| auto | count_tests (bool value) noexcept -> settings & |
| Sets count tests. | |
| auto | enable_stack_trace () const noexcept -> bool |
| Gets stack trace enabled. | |
| auto | enable_stack_trace (bool value) noexcept -> settings & |
| Sets stack trace enabled. | |
| auto | end_time () const noexcept -> const xtd::date_time & |
| Gets unit test end time. | |
| auto | exit_status () const noexcept -> xtd::int32 |
| Gets exit status. | |
| auto | exit_status (xtd::int32 value) noexcept -> settings & |
| Sets exit status. | |
| auto | filter_tests () const noexcept -> const xtd::array< xtd::string > & |
| Gets filter tests. | |
| auto | filter_tests (const xtd::array< xtd::string > &value) noexcept -> settings & |
| Sets filter tests. | |
| auto | gtest_compatibility () const noexcept -> bool |
| Gets google test comaptibility. | |
| auto | gtest_compatibility (bool value) noexcept -> settings & |
| Sets google test comaptibility. | |
| 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 tests. | |
| auto | list_tests () const noexcept -> bool |
| Gets list tests. | |
| auto | list_tests (bool value) noexcept -> settings & |
| Sets list tests. | |
| auto | output_color () const noexcept -> bool |
| Gets output color. | |
| auto | output_color (bool value) noexcept -> settings & |
| Sets output color. | |
| auto | output_json () const noexcept -> bool |
| Gets output xml. | |
| auto | output_json (bool value) noexcept -> settings & |
| Sets output json. | |
| auto | output_json_path () const noexcept -> xtd::string |
| Gets output json path. | |
| auto | output_json_path (const xtd::string &value) noexcept -> settings & |
| Sets output sjon path. | |
| auto | output_xml () const noexcept -> bool |
| Gets output xml. | |
| auto | output_xml (bool value) noexcept -> settings & |
| Sets output xml. | |
| auto | output_xml_path () const noexcept -> xtd::string |
| Gets output xml path. | |
| auto | output_xml_path (const xtd::string &value) noexcept -> settings & |
| Sets output xml path. | |
| auto | random_seed () const noexcept -> xtd::uint32 |
| Gets random seed value. | |
| auto | random_seed (xtd::uint32 value) noexcept -> settings & |
| Sets random seed value. | |
| auto | repeat_test () const noexcept -> xtd::int32 |
| Gets repeat tests count. | |
| auto | repeat_tests (xtd::int32 value) noexcept -> settings & |
| Sets repeat tests count. | |
| auto | show_duration () const noexcept -> bool |
| Gets if show duration for each test. | |
| auto | show_duration (bool value) noexcept -> settings & |
| Sets if show duration for each test. | |
| auto | shuffle_test () const noexcept -> bool |
| Gets shuffle tests. | |
| auto | shuffle_test (bool value) noexcept -> settings & |
| Sets shuffle tests. | |
| auto | start_time () const noexcept -> const xtd::date_time & |
| Gets unit test start time. | |
| auto | throw_on_failure () const noexcept -> bool |
| Gets throw on failure. | |
| auto | throw_on_failure (bool value) noexcept -> settings & |
| Sets throw on failure. | |
Public Static Properties | |
| static auto | default_settings () noexcept -> xtd::tunit::settings & |
| Gets default settings instance. | |
|
default |
Creates new instance of settings.
| Property | Default value |
|---|---|
| also_run_ignored_tests | false |
| break_on_failure | false |
| brief | false |
| count_tests | false |
| enable_stack_trace | false |
| exit_status | EXIT_SUCCESS |
| filter_tests | {"*.*"} |
| gtest_compatibility | false |
| list_tests | false |
| output_color | true |
| output_json | false |
| output_json_path | "" |
| output_xml | false |
| output_xml_path | "" |
| random_seed | 0 |
| repeat_test | 1 |
| show_duration | true |
| shuffle_test | false |
| throw_on_failure | false |
|
nodiscardnoexcept |
Gets also run ignored test.
|
noexcept |
Sets also run ignored test.
| value | true if also run ignored test; otherwise false. The default value is false. |
|
nodiscardnoexcept |
Gets break immediatly on failure.
|
noexcept |
Sets break immediatly on failure.
| value | true if break immediatly on failure; otherwise false. The default value is false. |
|
nodiscardnoexcept |
Gets brief.
|
noexcept |
Sets brief.
| value | true if brief; otherwise false. The default value is false. |
|
nodiscardnoexcept |
Gets count tests.
|
noexcept |
Sets count tests.
| value | true if count tests; otherwise false. The default value is false. |
|
nodiscardnoexcept |
Gets stack trace enabled.
|
noexcept |
Sets stack trace enabled.
| value | true if stack trace enabled; otherwise false. The default value is false. |
|
nodiscardnoexcept |
Gets unit test end time.
|
nodiscardnoexcept |
Gets exit status.
|
noexcept |
Sets exit status.
| value | exit status. The value by default is EXIT_SUCCESS. |
|
nodiscardnoexcept |
Gets filter tests.
|
noexcept |
Sets filter tests.
| value | filter tests. The value by default is {"*.*"}. |
|
nodiscardnoexcept |
Gets google test comaptibility.
|
noexcept |
Sets google test comaptibility.
| value | true if google test comaptibility; otherwise false. The default value is false. |
|
nodiscardnoexcept |
Return true if a specified test class name and specified test name match with the current filter tests.
|
nodiscardnoexcept |
Gets list tests.
|
noexcept |
Sets list tests.
| value | true if list tests; otherwise false. The default value is false. |
|
nodiscardnoexcept |
Gets output color.
|
noexcept |
Sets output color.
| value | true for colored output; otherwise false. The default value is true. |
|
nodiscardnoexcept |
Gets output xml.
|
noexcept |
Sets output json.
| value | true for generate json report; otherwise false. The default value is false. |
|
nodiscardnoexcept |
Gets output json path.
|
noexcept |
Sets output sjon path.
| value | Output json path. The default value is xtd::string::empty_string (""). |
|
nodiscardnoexcept |
Gets output xml.
|
noexcept |
Sets output xml.
| value | true for generate xml report; otherwise false. The default value is false. |
|
nodiscardnoexcept |
Gets output xml path.
|
noexcept |
Sets output xml path.
| value | Output xml path. The default value is xtd::string::empty_string (""). |
|
nodiscardnoexcept |
Gets random seed value.
|
noexcept |
Sets random seed value.
| value | Random seed value. The default value is 0 (no seed). |
|
nodiscardnoexcept |
Gets repeat tests count.
|
noexcept |
Sets repeat tests count.
| value | Repeat test count. The default value is 1 (no repeat). |
|
nodiscardnoexcept |
Gets if show duration for each test.
|
noexcept |
Sets if show duration for each test.
| value | true if show duration for each test; otherwise false. The default value is true. |
|
nodiscardnoexcept |
Gets shuffle tests.
|
noexcept |
Sets shuffle tests.
| value | true if shuffle test; otherwise false. The default value is false. |
|
nodiscardnoexcept |
Gets unit test start time.
|
nodiscardnoexcept |
Gets throw on failure.
|
noexcept |
Sets throw on failure.
| value | true if throw on failure; otherwise false. The default value is false. |
|
staticnodiscardnoexcept |
Gets default settings instance.
| Property | Default value |
|---|---|
| also_run_ignored_tests | false |
| break_on_failure | false |
| brief | false |
| count_tests | false |
| enable_stack_trace | false |
| exit_status | EXIT_SUCCESS |
| filter_tests | {"*.*"} |
| gtest_compatibility | false |
| list_tests | false |
| output_color | true |
| output_json | false |
| output_json_path | "" |
| output_xml | false |
| output_xml_path | "" |
| random_seed | 0 |
| repeat_test | 1 |
| show_duration | true |
| shuffle_test | false |
| throw_on_failure | false |