entur / r5

Rapid Realistic Routing on Real-world and Reimagined networks
MIT License
2 stars 2 forks source link

Automatic system test #16

Open t2gran opened 5 years ago

t2gran commented 5 years ago

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:

  1. Create the simplest possible transit graph for the use case to test
  2. Run RR/McRR
  3. 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.