Add convenience methods for integration testing the ECS #3814
Labels
A-ECS
Entities, components, systems, and events
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
What problem does this solve or what need does it fill?
Integration testing is important, but our existing tools for it are boilerplate-heavy.
What solution would you like?
There are a few patterns that come up very regularly, and should be supported directly on the
App
andWorld
:n
Each method on
App
should just call the underlying method onWorld
.What alternative(s) have you considered?
These helper methods can be written entirely externally. However, this is suboptimal because:
Additional context
This pattern is very useful when combined with manually calling
app.update()
in your integration tests.#3786 would make organizing these sorts of ergonomics methods more convenient.
I've also written a number of tools for input-mocking that are very useful, but those should be considered in a separate issue / PR.
The text was updated successfully, but these errors were encountered: