supertux icon indicating copy to clipboard operation
supertux copied to clipboard

Add commandline option --test

Open Zwatotem opened this issue 3 years ago • 3 comments

~~This pull request will have to be merged by the end of this week, so I'll see how much more I can fit in here by then.~~ Planned are:

  • Get rid of audio during these tests
  • Warp playthrough mode (disable delays between game logic steps)
  • Support for single file testing (Either level and demo in the same file or pointing to these files)
  • Hide this stuff behind a compiler switch, so it's not exposed in public builds.
  • Scripting functions that work like test steps (e.g. all must fire, or any must fire, or neither etc.)
  • Test manager executable, that can fire several of these tests in parallel.

The tests themselves are probably going to be introduced in a separate PR. Let me know ahead of time, where should they be and how to package them, so they don't end up like secret swimming test that's shipped with every copy of SuperTux right now.

Zwatotem avatar Jan 16 '22 22:01 Zwatotem

Can you please fix the build errors?

tobbi avatar Jan 20 '22 21:01 tobbi

@tobbi I'm trying to, but I have no idea, how to revert a submodule change on Github.

Zwatotem avatar Jan 20 '22 21:01 Zwatotem

Is it possible to add this to the test suite instead?

Semphriss avatar Mar 01 '22 22:03 Semphriss