Browse Source

Add `--print-filenames` option to GDScript unit testing (#6706)

Co-authored-by: Hugo Locurcio <[email protected]>
anvilfolk 2 years ago
parent
commit
1631de89e7
1 changed files with 7 additions and 0 deletions
  1. 7 0
      contributing/development/core_and_modules/unit_testing.rst

+ 7 - 0
contributing/development/core_and_modules/unit_testing.rst

@@ -325,12 +325,19 @@ Therefore, the process of writing integration tests for GDScript is the followin
 
        ./bin/<godot_binary> --gdscript-generate-tests godot-source/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:
 
    .. code-block:: shell
 
        ./bin/<godot_binary> --test --test-suite="*GDScript*"
 
+This also accepts the ``--print-filenames`` option (see above).
+
 If no errors are printed and everything goes well, you're done!
 
 .. warning::