godot/tests
Andrii Doroshenko (Xrayez) 6f426c3360 Port ClassDB tests to use doctest
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>
2020-08-16 16:41:02 +03:00
..
SCsub Crash when debugging tests by disabling thread_local in /MT context 2020-07-26 18:24:52 +01:00
test_astar.h Port AStar tests to use doctest 2020-07-31 02:09:40 +03:00
test_basis.h Port Basis tests to use doctest. 2020-08-01 08:27:10 -07:00
test_class_db.h Port ClassDB tests to use doctest 2020-08-16 16:41:02 +03:00
test_color.h Add a test suite for Color 2020-07-31 21:04:16 +02:00
test_gdscript.cpp Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_gdscript.h Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_gui.cpp Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_gui.h Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_macros.h Stringify `Variant` compatible types for doctest output 2020-08-02 01:38:24 +03:00
test_main.cpp Fix memory leak in test args 2020-07-31 23:58:22 +03:00
test_main.h Cleanup obsolete tests from displaying in help 2020-07-29 15:07:16 +03:00
test_math.cpp Make all String float conversion methods be 64-bit 2020-07-27 18:38:53 -04:00
test_math.h Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_oa_hash_map.cpp Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_oa_hash_map.h Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_ordered_hash_map.h Port OrderedHashMap tests to doctest 2020-08-08 15:49:50 +03:00
test_physics_2d.cpp Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_physics_2d.h Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_physics_3d.cpp Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_physics_3d.h Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_render.cpp Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_render.h Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_shader_lang.cpp Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_shader_lang.h Move `tests` to the top-level directory 2020-07-26 00:06:07 +03:00
test_string.h Hide implementation details of doctest macros 2020-07-30 16:58:12 +03:00
test_validate_testing.h Port ClassDB tests to use doctest 2020-08-16 16:41:02 +03:00
test_variant.h Hide implementation details of doctest macros 2020-07-30 16:58:12 +03:00