|bevy vewsion:|0.9 |(outdated!)| |---|---|---|
As this page is outdated, please refer to Bevy's official migration guides while reading, to cover the differences: 0.9 to 0.10, 0.10 to 0.11, 0.11 to 0.12, 0.12 to 0.13, 0.13 to 0.14.
I apologize for the inconvenience. I will update the page as soon as I find the time.
wwiting tests fow systems
you might want to wwite and wun automated t-tests fow y-youw systems.
you can use the weguwaw wust testing f-featuwes (cargo test
) with bevy.
to do this, (ꈍᴗꈍ) you can cweate an empty e-ecs World
in youw
tests, >< and then, using diwect wowwd access, XD insewt nyanievew
entities and wesouwces you nyeed fow testing. >< cweate
a standawone stage with the systems you want to
wun, >_< and manuawwy wun it on the World
.
bevy's officiaw wepositowy has a f-fantastic exampwe of how to do this.