[Tests] ConfigTest->SimIntegration, add TestBasicMicromissilePerformance #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In a simple, reduced scenario, the micromissiles should have a minimum level of performance that results in a 100% kill rate of quadcopters
Adds two _kp1 threat model files, as we test that we have a 100% kill rate in this reduced scenario
This pull request includes significant changes to the simulation configuration and testing files. The main updates involve refactoring event invocation in the simulation manager, adding new threat configurations, and restructuring the test files for better organization and functionality.
Refactoring and Event Handling:
Assets/Scripts/SimManager.cs
: Moved the invocation of theOnSimulationStarted
event fromInitializeSimulation
toStartSimulation
to ensure it is called before initialization. [1] [2]Configuration Files:
Assets/StreamingAssets/Configs/Models/Threats/quadcopter_kp1.json
: Added a new configuration file for the "Quadcopter" threat model.Assets/StreamingAssets/Configs/Models/Threats/ucav_kp1.json
: Added a new configuration file for the "UCAV" threat model.Assets/StreamingAssets/Configs/test_simple_config.json
: Added a new test configuration file for simple simulation scenarios.Testing:
Assets/Tests/PlayMode/ConfigTest.cs
: Removed the old configuration test file.Assets/Tests/PlayMode/SimIntegrationTests.cs
: Added a new integration test file to test the loading and performance of configuration files and basic micromissile performance.