|Integration tests now checked in [message #653755]
||Fri, 11 February 2011 00:38
| Stefan Edlund
Registered: July 2009
The plugin org.eclipse.stem.tests.core now contains a test suite called "ScenarioIntegrationTests". Running the suite as a JUnit plugin test does the following:|
1. It reads each project stored under the resources folder in the plugin (right now there's only one, "BasicTests")
2. It runs each scenario in the project and checks to make sure the models generate "valid" results. By valid we mean: 1. That the compartment states (e.g. S+I+R) adds up to the total population. 2. That no compartment ever goes negative. 3. That the log files generated by the scenarios agrees with a reference stored under the "Recorded Simulations/IntegrationTest" folder.
The scenarios tested right now includes basic single location SI, SIR SEIR scenarios, scenarios with mixing between two nodes, scenarios with mixing/migration between two nodes, scenarios having air transportation and scenarios including a percentage of the population being inoculated.
More tests will be added soon (e.g. multi-population disease models, population model tests) to test all aspects of STEM end-to-end.
For developers, please make sure you test your code by running (at least) the integration tests to avoid breaking things.
Powered by FUDForum
. Page generated in 0.11099 seconds