Skip to content

Conversation

@dbnicholson
Copy link
Member

@dbnicholson dbnicholson commented Jun 17, 2024

This adds the GUT plugin to run unit tests and an example set of tests for InstructionTree. I've also included a GitHub Actions job to run the tests, but we'll see if it can be made to work correctly and reliably.

https://phabricator.endlessm.com/T35508

Add and enable the Godot Unit Testing (GUT) plugin so we can start unit
testing the plugin. GUT and pre-commit have been configured to use the
top level `tests` directory so the tests aren't distributed with the
plugin.
This tests only the `generate_text` method as that's the only one that's
used in the plugin.
Rename the pre-commit workflow to the more generic "checks" and add a
job to run GUT. This makes use of the chickensoft-games/setup-godot
action to download and cache Godot for Linux.
Copy link
Contributor

@manuq manuq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@manuq manuq merged commit 3050f2e into main Jun 18, 2024
@manuq manuq deleted the tests branch June 18, 2024 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants