From 32264c9393b5eee079230c2c49e9d69d129a1cfc Mon Sep 17 00:00:00 2001 From: Russell Matney Date: Tue, 3 Oct 2023 12:50:28 -0400 Subject: [PATCH] wip: gut tests running in CI --- .github/workflows/gut_tests.yml | 8 +++++--- .gutconfig.json | 2 +- test_results.xml | 3 +++ 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 test_results.xml diff --git a/.github/workflows/gut_tests.yml b/.github/workflows/gut_tests.yml index f33266892..ff3d0be3a 100644 --- a/.github/workflows/gut_tests.yml +++ b/.github/workflows/gut_tests.yml @@ -7,6 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - run: touch ./test_results.xml - uses: croconut/godot-tester@v5.1 with: # required @@ -18,7 +19,7 @@ jobs: path: "." # how long to spend importing assets before tests are run - import-time: "5" + # import-time: "5" # how long tests can run in seconds test-timeout: "15" # the ratio of tests that must pass for this action to pass @@ -34,16 +35,17 @@ jobs: # ensure that the script exits on test completion # uses relative path from your godot project directory # direct-scene: "tester_GUT_v9.0.1/test/alt_mode/tests.tscn" + direct-scene: "false" # default is false, set true to count asserts instead of tests assert-check: "false" # not checked by default, set to a number to limit the # maximum amount of failed tests for a passing test suite - # max-fails: 3 + max-fails: 0 # default is GUTs default: 'res://.gutconfig.json'; set this to load a different config file - # config-file: "res://.myconfig.json" + config-file: "res://.gutconfig.json" # designate a custom url to download the godot binary from # custom-godot-dl-url: "" diff --git a/.gutconfig.json b/.gutconfig.json index 4f4680537..2f23db947 100644 --- a/.gutconfig.json +++ b/.gutconfig.json @@ -13,7 +13,7 @@ "log_level": 1, "opacity": 100, "should_exit": true, - "should_exit_on_success": false, + "should_exit_on_success": true, "should_maximize": false, "compact_mode": false, "suffix": "_test.gd", diff --git a/test_results.xml b/test_results.xml new file mode 100644 index 000000000..4b1ad1bb1 --- /dev/null +++ b/test_results.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file