mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Add note about the create_test.py script
This commit is contained in:
@@ -129,6 +129,12 @@ Here's a minimal working test suite with a single test case written:
|
||||
|
||||
#endif // TEST_STRING_H
|
||||
|
||||
.. note::
|
||||
You can quickly generate new tests using the ``create_test.py`` script found in the ``tests/`` directory.
|
||||
This script automatically creates a new test file with the required boilerplate code in the appropriate location.
|
||||
It's also able to automatically include the new header in ``tests/test_main.cpp`` using invasive mode (``-i`` flag).
|
||||
To view usage instructions, run the script with the ``-h`` flag.
|
||||
|
||||
The ``tests/test_macros.h`` header encapsulates everything which is needed for
|
||||
writing C++ unit tests in Godot. It includes doctest assertion and logging
|
||||
macros such as ``CHECK`` as seen above, and of course the definitions for
|
||||
|
||||
Reference in New Issue
Block a user