Skip to content

Commit ead42d7

Browse files
authored
Fix *.out file path in integration tests documentation (godotengine#8221)
The path to the `bin/` directory is written from the root as `./bin/<godot_binary>`, however the path to the `scripts/` directory is written from outside the root as `godot-source/modules/gdscript/tests/scripts`, which is inconsistent.
1 parent 8e18efa commit ead42d7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

contributing/development/core_and_modules/unit_testing.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,18 +319,24 @@ Therefore, the process of writing integration tests for GDScript is the followin
319319
if true # Missing colon here.
320320
print("true")
321321

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

324324
.. code-block:: shell
325325
326-
./bin/<godot_binary> --gdscript-generate-tests godot-source/modules/gdscript/tests/scripts
326+
cd godot
327+
328+
4. Generate ``*.out`` files to update the expected results from the output:
329+
330+
.. code-block:: shell
331+
332+
bin/<godot_binary> --gdscript-generate-tests modules/gdscript/tests/scripts
327333
328334
You may add the ``--print-filenames`` option to see filenames as their test
329335
outputs are generated. If you are working on a new feature that is causing
330336
hard crashes, you can use this option to quickly find which test file causes
331337
the crash and debug from there.
332338

333-
4. Run GDScript tests with:
339+
5. Run GDScript tests with:
334340

335341
.. code-block:: shell
336342

0 commit comments

Comments
 (0)