Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions contributing/development/core_and_modules/unit_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,18 +319,24 @@ Therefore, the process of writing integration tests for GDScript is the followin
if true # Missing colon here.
print("true")

3. Generate ``*.out`` files to update the expected results from the output:
3. Change directory to the Godot source repository root.

.. code-block:: shell

./bin/<godot_binary> --gdscript-generate-tests godot-source/modules/gdscript/tests/scripts
cd godot

4. Generate ``*.out`` files to update the expected results from the output:

.. code-block:: shell

bin/<godot_binary> --gdscript-generate-tests modules/gdscript/tests/scripts

You may add the ``--print-filenames`` option to see filenames as their test
outputs are generated. If you are working on a new feature that is causing
hard crashes, you can use this option to quickly find which test file causes
the crash and debug from there.

4. Run GDScript tests with:
5. Run GDScript tests with:

.. code-block:: shell

Expand Down