summaryrefslogtreecommitdiffstats
path: root/tests/test_validate_testing.h
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Add unit tests for Array.pop_at()Haoyu Qiu2021-08-281-0/+12
|
* Rename Quat to QuaternionMarcel Admiraal2021-06-041-1/+1
|
* Rename Transform to Transform3D in coreAaron Franke2021-06-031-1/+1
|
* Use comma over `<<` operator for all unit test loggingAndrii Doroshenko (Xrayez)2021-01-081-4/+2
| | | | | | | The comma operator should be preferred now according to doctest. Moved macro aliases from `ClassDB` tests to `test_macros.h`, because those are also used in `TextServer` tests.
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Port ClassDB tests to use doctestAndrii Doroshenko (Xrayez)2020-08-161-4/+0
| | | | | | | | | | | | | | | | | | | | | | Extracted the most minimal core initialization functionality from `setup()` and `setup2()` so that `ClassDB` could be tested properly (input, audio, rendering, physics etc, are excluded). Display and rendering servers/singletons are not initialized at all. Due to the fact that most subsystems are disabled, fixed various crashes in the process (in order): - `AcceptDialog` OK/cancel swap behavior (used `DisplayServer` while `register_scene_types()`); - `make_default_theme` which depends on `RenderingServer`; - `XRServer` singleton access while calling `register_modules_types()`; - hidden bug in a way joypads are cleaned up (MacOS and Linux only). Removed manual `ClassDB` init/cleanup calls from `test_validate_testing.h`. ClassDB tests: Co-authored-by: Ignacio Etcheverry <ignalfonsore@gmail.com>
* Stringify `Variant` compatible types for doctest outputAndrii Doroshenko (Xrayez)2020-08-021-0/+135
|
* Hide implementation details of doctest macrosAndrii Doroshenko (Xrayez)2020-07-301-3/+19
| | | | | | | | | | | | | | | | | | | `test_macros.h` is created to provide various macros acting as aliases for doctest macros to work better with Godot internals and conventions. This also makes it accessible for those who'd like to start writing tests in Godot, as most vital information can be put together and documented directly in `test_macros.h` header. Developers are encouraged to include the new `tests/test_macros.h` for writing new tests over `thirdparty/doctest/doctest.h`. Added `TEST_CASE_PENDING("name")` as an alias for `TEST_CASE("name", doctest::skip())` which could be used to mark failing tests for issues yet to be fixed, so as to not affect CI testing results. Added `ERR_PRINT_OFF` and `ERR_PRINT_ON` to control error printing for testing various **expected** failure paths within Godot without polluting the test summary with error messages.
* Move `tests` to the top-level directoryAndrii Doroshenko (Xrayez)2020-07-261-0/+42