Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Spatiotemporal Epidemiological Modeler (STEM) » Integration tests now checked in
Integration tests now checked in [message #653755] Thu, 10 February 2011 19:38
Stefan Edlund is currently offline Stefan Edlund
Messages: 127
Registered: July 2009
Location: IBM
Senior Member
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.

Previous Topic:National Geographic
Next Topic:defective SVN checkout and build
Goto Forum:
  


Current Time: Sun Aug 31 04:28:42 EDT 2014

Powered by FUDForum. Page generated in 0.01476 seconds