Skip to main content

rmv_bevy_testing_tools/
test_app.rs

1use bevy_app::{App, AppExit};
2use bevy_derive::{Deref, DerefMut};
3
4// TODO: remove, impl traits on bevy app directly?
5#[derive(Debug, Deref, DerefMut)]
6pub struct TestApp(pub App);
7
8// NOTE: this is now also handled by feature `bevy/bevy_ci_testing`
9impl Drop for TestApp {
10    fn drop(&mut self) {
11        self.world_mut().write_message(AppExit::Success);
12    }
13}