Allow bevy to be run as an integration test inside a #[test] #1057
Labels
A-Build-System
Related to build systems or continuous integration
A-Core
Common functionality for all bevy apps
C-Feature
A new feature, making something new possible
What problem does this solve or what need does it fill?
Make game/project made with bevy as easily testable as possible. It would also help bevy proper since more integration test could be added.
Describe the solution would you like?
I would like to be able to run a bevy app from a #[test] function. In particular, I think it is important to be able to run windowed app.
Describe the alternative(s) you've considered?
Additional context
I have a working prototype that work for running test on linux with x11. First, let me explain the four problems that I had to solve to make it work.
I intend to make multiple pull request to fix these problems in the coming days. You can check my WIP on https://github.com/refnil/bevy/commits/master.
Two quick questions that would help me make better pull requests?
Two inspirations for this issues:
Happy to ear what you think about this.
Thanks for your cool project.
The text was updated successfully, but these errors were encountered: