Skip to content

Commit

Permalink
disable animation and backgrounds plugin for minimal_headless_audiole…
Browse files Browse the repository at this point in the history
…ss_app_with_as_many_game_features_as_possible test
  • Loading branch information
cdsupina committed Mar 2, 2024
1 parent 1c65b5e commit 3764b95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ impl PluginGroup for ThetawaveGamePlugins {

#[cfg(test)]
mod test {
use crate::animation::AnimationPlugin;
use crate::audio::ThetawaveAudioPlugin;
use crate::background::BackgroundPlugin;
use crate::{build_app, options, ui, ThetawaveGamePlugins};
use bevy::app::{App, PluginGroup};
use bevy::asset::AssetPlugin;
Expand Down Expand Up @@ -268,6 +270,8 @@ mod test {
// Ideally audio is mostly handled via `thetawave_interface::audio` and events, so that
// we really only skip testing 1 match statement and external audio deps.
.disable::<ThetawaveAudioPlugin>()
.disable::<AnimationPlugin>()
.disable::<BackgroundPlugin>()
.disable::<AudioPlugin>();

let mut app = build_app(base_plugins, game_plugins);
Expand Down

0 comments on commit 3764b95

Please sign in to comment.