Skip to content
Snippets Groups Projects

Running tests

pytest

How it works?

  1. pytest generates combinations of test input (code in conftest.py)
  2. for each combination of inputs: (code in test_runner.py)
  3. pytest generates a robin input file
  4. pytest executes robin on the generated file

Running a specific test

You can manually rerun a test with robin (a failing one for example):

robin test-instances/FAILING-TEST.yaml

You can also run batsim and batsched in different terminals:

./test-out/FAILING-TEST/cmd/batsim.bash

# feel free to hack — e.g., prepend command with gdb, valgrind...
./test-out/FAILING-TEST/cmd/sched.bash