Skip to content

Commit

Permalink
wip: gut tests running in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
russmatney committed Oct 3, 2023
1 parent aff5b46 commit 32264c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/gut_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: touch ./test_results.xml
- uses: croconut/[email protected]
with:
# required
Expand All @@ -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
Expand All @@ -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: ""
Expand Down
2 changes: 1 addition & 1 deletion .gutconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions test_results.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="GutTests" failures="0" tests="0" >
</testsuites>

0 comments on commit 32264c9

Please sign in to comment.