Create an automatic system test that run during the test of integration-test fase of maven.
The test should test the McRR and the RR as a black box and test all possible use cases (this might not be possible, but still the goal).
Existing test
We have a semi automatic integration test, SpeedTest, that we should be able to reuse.
Design
I would prefer to create a transit data builder to create test data to test against. Then an outline of a test would be:
Create the simplest possible transit graph for the use case to test
Run RR/McRR
Verify results
By not using real data it becomes much easier to maintain and use case specific tests will pinpoint issues much better. Remember the RR and McRR should be deterministic well defined functions - ideal for testing this way.
Goal
Create an automatic system test that run during the test of integration-test fase of maven. The test should test the McRR and the RR as a black box and test all possible use cases (this might not be possible, but still the goal).
Existing test
We have a semi automatic integration test,
SpeedTest
, that we should be able to reuse.Design
I would prefer to create a transit data builder to create test data to test against. Then an outline of a test would be:
By not using real data it becomes much easier to maintain and use case specific tests will pinpoint issues much better. Remember the RR and McRR should be deterministic well defined functions - ideal for testing this way.