0512cc01d9
`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. |
||
---|---|---|
.. | ||
SCsub | ||
test_astar.cpp | ||
test_astar.h | ||
test_basis.cpp | ||
test_basis.h | ||
test_class_db.cpp | ||
test_class_db.h | ||
test_gdscript.cpp | ||
test_gdscript.h | ||
test_gui.cpp | ||
test_gui.h | ||
test_macros.h | ||
test_main.cpp | ||
test_main.h | ||
test_math.cpp | ||
test_math.h | ||
test_oa_hash_map.cpp | ||
test_oa_hash_map.h | ||
test_ordered_hash_map.cpp | ||
test_ordered_hash_map.h | ||
test_physics_2d.cpp | ||
test_physics_2d.h | ||
test_physics_3d.cpp | ||
test_physics_3d.h | ||
test_render.cpp | ||
test_render.h | ||
test_shader_lang.cpp | ||
test_shader_lang.h | ||
test_string.h | ||
test_validate_testing.h | ||
test_variant.h |