-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow bevy to be run as an integration test inside a #[test] #1057
Labels
A-Build-System
Related to build systems or continuous integration
C-Feature
A new feature, making something new possible
Comments
refnil
changed the title
Allow bevy to be run as a integration test inside a #[test]
Allow bevy to be run as an integration test inside a #[test]
Dec 13, 2020
This was referenced Dec 14, 2020
Moxinilian
added
A-Build-System
Related to build systems or continuous integration
core
C-Feature
A new feature, making something new possible
labels
Dec 15, 2020
Diving into this now. I've started trying to unit test "full" Bevy apps and your changes appear to do the trick. Thanks! |
Closed
This is now resolved for apps that do not require graphics. See this real-life example. Once #3754 is solved I think this can be closed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-Build-System
Related to build systems or continuous integration
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: