Skip to main content

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] Fri, 11 February 2011 00:38
Stefan Edlund is currently offline Stefan EdlundFriend
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:STEM nominated for an Eclipse Community Award
Goto Forum:

Current Time: Thu Jun 21 06:48:03 GMT 2018

Powered by FUDForum. Page generated in 0.01892 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top