Pytest plugin to treat skipped tests a test failure
Project description
[![See Build Status on Travis CI](https://travis-ci.org/jankatins/pytest-error-for-skips.svg?branch=master)](https://travis-ci.org/jankatins/pytest-error-for-skips)
[![See Build Status on AppVeyor](https://ci.appveyor.com/api/projects/status/github/jankatins/pytest-error-for-skips?branch=master)](https://ci.appveyor.com/project/jankatins/pytest-error-for-skips/branch/master)
[![Documentation Status](https://readthedocs.org/projects/pytest-plugin-to-treat-skipped-tests-as-errors/badge/?version=latest)](http://pytest-plugin-to-treat-skipped-tests-as-errors.readthedocs.io/en/latest/?badge=latest)
[![PyPI Status](https://badge.fury.io/py/pytest-error-for-skips.svg)](https://badge.fury.io/py/pytest-error-for-skips)
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.
Usage
Simply execute your tests via pytest –error-for-skips … and all skipped tests become test failures.
Requirements
pytest
Installation
You can install "pytest-error-for-skips" via [pip](https://pypi.python.org/pypi/pip/) from [PyPI](https://pypi.python.org/pypi):
`bash pip install pytest-error-for-skips `
Contributing
Contributions are very welcome. Tests can be run with [tox](https://tox.readthedocs.io/en/latest/), please ensure the coverage at least stays the same before you submit a pull request.
Simplest setup:
`bash 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 `
License
Distributed under the terms of the [MIT](http://opensource.org/licenses/MIT) license, "pytest-error-for-skips" is free and open source software
Issues
If you encounter any problems, please [file an issue](https://github.com/jankatins/pytest-error-for-skips/issues) along with a detailed description.
This [Pytest](https://github.com/pytest-dev/pytest) plugin was generated with [Cookiecutter](https://github.com/audreyr/cookiecutter) along with [@hackebrot](https://github.com/hackebrot)'s [Cookiecutter-pytest-plugin](https://github.com/pytest-dev/cookiecutter-pytest-plugin) template.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest-error-for-skips-2.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 515ead2011e457c9dccb48e25612ac39bbeb0137898af17f7fed1002005bcc4a |
|
MD5 | 6fa94e14578080477f3406856a204b20 |
|
BLAKE2b-256 | 60a980071db9f2c9692a7b861a897bfc2ed776d61b0dca5c39df309a8908aa94 |
Hashes for pytest_error_for_skips-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e3798b4b0b848c973029f7d22d491cddd998427bd6fc4d3336f3db2d1f4c162 |
|
MD5 | 6555b5aba49f7d721f7e0b7eec063ff2 |
|
BLAKE2b-256 | 4165482be8789a146c99958e68b8bd49adbdba33a36bc36776cc50fe66ebdd94 |