godot-gdunit-labs/GdUnit4 - Test Runner Action
This GitHub Action automates the execution of GdUnit4 unit tests within the Godot Engine 4.x environment.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| godot-version | The version of Godot in which the tests should be run. | yes | — |
| godot-status | The Godot status (e.g., "stable", "rc1", "dev1") | no | stable |
| godot-net | Set to true for Godot .Net (C#). | no | false |
| godot-force-mono | Force test run to use Godot Mono version | no | false |
| version | The version of GdUnit4 to use. (e.g. "v4.2.0", "latest", "master"). | no | latest |
| dotnet-version | The used .NET version to run the test (e.g. "net7.0", "net8.0") | no | net8.0 |
| console-verbosity | Console logger verbosity for C# tests (quiet|minimal|normal|detailed|diagnostic) | no | minimal |
| paths | Comma-separated or newline-separated list of directories containing test to execute. | yes | — |
| arguments | Additional arguments to run GdUnit4. (e.g. "--verbose") | no | — |
| timeout | The test execution timeout in minutes. | no | 10 |
| retries | The number of retries if the tests fail. | no | 0 |
| warnings-as-errors | Treat test warnings as errors (return code 101 will be treated as error) | no | false |
| publish-report | Enable disable to publish the report. To disable to run on forked repositories. | no | true |
| upload-report | Whether the report & logs should be uploaded. | no | true |
| project_dir | The project directory in which the action is to be executed. The specified directory must end with a path separator. e.g. ./MyProject/ | no | ./ |
| report-name | The name of the test report file. | no | test-report.xml |
Outputs
| name | description |
|---|---|
| exit_code | The exit code from the test run |
| version_check_exit_code | The exit code from the version compatibility check |