This directory contains the Python test suite of HyperQueue.
The following commands are supposed to be executed from the root HyperQueue directory.
- Install
pytest
and other dependencies$ python -m pip install tests/requirements.txt
- Run tests
$ python -m pytest tests
You can speed up test execution by running them in parallel:
$ python -m pytest tests -n16
There are several tests for the automatic allocator that require the presence of an external service (PBS).
If you are on a system that has these services installed, you can run these tests with the pbs
mark:
$ python -m pytest tests -m pbs
You can bless tests with the following command:
$ python -m pytest --inline-snapshot=create