rmv-bevy-testing-tools 0.6.1-2

Write simple tests for bevy systems, using rstest, insta, and speculoos.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use bevy_app::{App, AppExit};
use bevy_derive::{Deref, DerefMut};

// TODO: remove, impl traits on bevy app directly?
#[derive(Debug, Deref, DerefMut)]
pub struct TestApp(pub App);

// NOTE: this is now also handled by feature `bevy/bevy_ci_testing`
impl Drop for TestApp {
    fn drop(&mut self) {
        self.world_mut().send_event(AppExit::Success);
    }
}