diff options
author | RevoluPowered <gordon@gordonite.tech> | 2020-07-20 17:35:34 +0100 |
---|---|---|
committer | Gordon MacPherson <gordon@gordonite.tech> | 2020-07-24 13:05:33 +0100 |
commit | 579342810f5c453e91063c54ca6544300ea09090 (patch) | |
tree | b01e1478605b835e1fe903384d753b114106d51e /.github/workflows/linux_builds.yml | |
parent | 93b50a62e333cd05702fb749ebcdc18127abe01b (diff) |
t Add unit testing to Godot using DocTest and added to GitHub Actions CI
Implements exit codes into the engine so tests can return their statuses.
Ideally we don't do this, and we use FIXUP logic to 'begin' and 'end' the engine execution for tests specifically.
Since realistically we're initialising the engine here we don't want to do that, since String should not require an engine startup to test a single header.
This lowers the complexity of running the unit tests and even for
physics should be possible to implement such a fix.
Diffstat (limited to '.github/workflows/linux_builds.yml')
-rw-r--r-- | .github/workflows/linux_builds.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/linux_builds.yml b/.github/workflows/linux_builds.yml index d91be544a3..be7737593a 100644 --- a/.github/workflows/linux_builds.yml +++ b/.github/workflows/linux_builds.yml @@ -62,6 +62,11 @@ jobs: run: | scons -j2 verbose=yes warnings=all werror=yes platform=linuxbsd tools=yes target=release_debug module_mono_enabled=yes mono_glue=no + # Execute unit tests for the editor + - name: Unit Tests + run: | + ./bin/godot.linuxbsd.opt.tools.64.mono --test + linux-template: runs-on: "ubuntu-20.04" name: Template w/ Mono (target=release, tools=no) |