tud-amr / localPlannerBench

Local Planner Bench
https://tud-amr.github.io/localPlannerBench/
GNU General Public License v3.0
50 stars 5 forks source link

Add integration test #7

Open maxspahn opened 2 years ago

maxspahn commented 2 years ago

Make sure that basic functionality is not destroyed by changes made during structure improvement. This can be done with GitHub actions and a CI.

niketagrawal commented 2 years ago

Approach to writing the integration/blackbox test: Compare the output of running an experiment with a specific type of planner and robot with the expected output.

The planners are deterministic, so the planners are expected to produce the same output for the same input configuration. Some of the fields are non-deterministic; they produce values that depend on the platform or OS that the experiment is run on. For the integration tests only the deterministic output fields can be compared each time.

Requirements

Workflow actions to be tested:

The integration test can be developed for the example planner now. It is not possible to use fabric and mpc planner in the tests because these planner are not open source; they can't be installed and run by GitHub actions. In future, open source versions of these two planners could be developed.

maxspahn commented 2 years ago

Introduced initial tests in a1c69c6bf35c4f23c773f35962d4e3ba7be8fee4

maxspahn commented 2 years ago

See #12 for switching from bash script to pytest only syntax.