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