How GoDotTest works
mainGoDotTest provides a deterministic, C#-first approach to testing in Godot using the following components:
- TestProvider: Uses reflection to find all test suites (classes extending
TestClass) in the current assembly. It constructs aTestEnvironmentbased on Godot command-line arguments. - TestExecutor: Runs methods marked with the
[Test]attribute in the order they are declared in aTestClass. - TestReporter: Responds to test events to display output.
Key Behaviors:
- Async Support: GoDotTest
awaits anyasync Tasktest methods. - No Parallelism: Tests do not run in parallel to prevent race conditions in visual or integration-style tests.
- Customization: You can use
GoTest.csas a starting point if you need to customize how tests are loaded and run.