Skip to main content

Pytest plugin to treat skipped tests a test failure

Project description

pytest-error-for-skips

See Build Status on Travis CI

See Build Status on AppVeyor

Documentation Status

PyPI Status

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 from PyPI:

pip install pytest-error-for-skips

Contributing

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.

Simplest setup:

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 license, "pytest-error-for-skips" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.


This Pytest plugin was generated with Cookiecutter along with @hackebrot's 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.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

pytest_error_for_skips-2.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-error-for-skips-2.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d4d0c89036a4105cabbc5e488c4078756c29cc2e5805b0694c3d9e49e52c0d11
MD5 21fde4a867069f90ca9b44e3a0a0d3a4
BLAKE2b-256 5a963d77e3446430168df51af2033cb24675301b29c474b64a10c1abc5f2577a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_error_for_skips-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ccc4029c04f1737aa81445c5f3599247f8a64d279741b4a66bf003782fa00492
MD5 0949eeede76bcbf50ca24bf1b83d33ba
BLAKE2b-256 8f0b1408ee0604b2cdb7f095149751809403622abd6ebec2566db88ad8314de1

See more details on using hashes here.

Supported by

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