Skip to main content

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

pytest-error-for-skips-2.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_error_for_skips-2.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pytest-error-for-skips-2.0.1.tar.gz.

File metadata

  • Download URL: pytest-error-for-skips-2.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for pytest-error-for-skips-2.0.1.tar.gz
Algorithm Hash digest
SHA256 515ead2011e457c9dccb48e25612ac39bbeb0137898af17f7fed1002005bcc4a
MD5 6fa94e14578080477f3406856a204b20
BLAKE2b-256 60a980071db9f2c9692a7b861a897bfc2ed776d61b0dca5c39df309a8908aa94

See more details on using hashes here.

File details

Details for the file pytest_error_for_skips-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: pytest_error_for_skips-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for pytest_error_for_skips-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e3798b4b0b848c973029f7d22d491cddd998427bd6fc4d3336f3db2d1f4c162
MD5 6555b5aba49f7d721f7e0b7eec063ff2
BLAKE2b-256 4165482be8789a146c99958e68b8bd49adbdba33a36bc36776cc50fe66ebdd94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page