Running tests
pytest
How it works?
- pytest generates combinations of test input (code in conftest.py)
- for each combination of inputs: (code in test_runner.py)
- pytest generates a robin input file
- 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