Pytest plugin to treat skipped tests a test failures.
This is nice if you want to ensure that your CI tests really run all tests and don't skip tests because of missing dependencies.
Simply execute your tests via
pytest --error-for-skips ... and all
skipped tests become test failures.
pip install pytest-error-for-skips
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
git clone <https://github.com/jankatins/pytest-error-for-skips.git cd pytest-error-for-skips (mkdir env && cd env && python -m venv> .) source env/bin/acticate python -m pip install -e . pytest
Distributed under the terms of the MIT license, "pytest-error-for-skips" is free and open source software
If you encounter any problems, please file an issue along with a detailed description.