diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-31 10:53:28 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-31 10:53:28 +0100 |
commit | b6a8b8e8f732bcec77f02f20d9c788ecd02992cf (patch) | |
tree | c2264b16d251b33bd27904d11783bb19808b1b9d /modules/gdscript/tests/gdscript_test_runner_suite.h | |
parent | ae2d2ce407eec4deaf306fad28e6f3ae84bda8bb (diff) | |
parent | 199e5dbb1ed1f51098b8c015b0ad36462287a48b (diff) |
Merge pull request #72212 from anvilfolk/gdtestnames
Add option to print filenames in GDScript unit testing
Diffstat (limited to 'modules/gdscript/tests/gdscript_test_runner_suite.h')
-rw-r--r-- | modules/gdscript/tests/gdscript_test_runner_suite.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/tests/gdscript_test_runner_suite.h b/modules/gdscript/tests/gdscript_test_runner_suite.h index aed0ac2baf..e27b6218f1 100644 --- a/modules/gdscript/tests/gdscript_test_runner_suite.h +++ b/modules/gdscript/tests/gdscript_test_runner_suite.h @@ -41,7 +41,8 @@ TEST_SUITE("[Modules][GDScript]") { // Allow the tests to fail, but do not ignore errors during development. // Update the scripts and expected output as needed. TEST_CASE("Script compilation and runtime") { - GDScriptTestRunner runner("modules/gdscript/tests/scripts", true); + bool print_filenames = OS::get_singleton()->get_cmdline_args().find("--print-filenames") != nullptr; + GDScriptTestRunner runner("modules/gdscript/tests/scripts", true, print_filenames); int fail_count = runner.run_tests(); INFO("Make sure `*.out` files have expected results."); REQUIRE_MESSAGE(fail_count == 0, "All GDScript tests should pass."); |