Prysk optionally can be installed with pytest support. If the user chooses to do so, various features and benefits provided by pytest and its plugins will be also available for the prysk tests.
The pytest test collection mechanisms
Expression based test selection using the
The test reporting of pytest
Parallel test execution (using pytest-xdist)
How to install the pytest plugin#
In order to install prysk with pytest support, the extra pytest-plugin, needs to be enabled. How this can be achieved depends or your package management tool. Here are some examples:
pip install 'prysk[pytest-plugin]'
poetry add -E "pytest-plugin" prysk
How to run prysk tests with pytest#
Once you installed prysk with pytest, it will use pytest mechanisms to collect your prysk tests.
So usually a simple
pytest does the trick.
In case you want to prevent pytest from running any prysk test just pass
-p no:prysk to the pytest cli.