Skip to main content
PyPI PyPI - Python Version GitHub See Build Status on Travis CI See Build Status on AppVeyor

Skip matching marks. Matches partial marks using wildcards.


This Pytest plugin was generated with Cookiecutter along with @hackebrot’s Cookiecutter-pytest-plugin template.

Features

  • Allows any tag to be used for a skip or xfail

  • Wildcards can be used for tags with variable parts (ie: Specify bug_.* for bug_123, bug_777)

  • Important tags can be specified and the user will be warned when they’re skipped

  • Tags that should be skipped can be forced to run anyways

Installation

You can install “pytest-match-skip” via pip from PyPI:

pip install pytest-match-skip

Usage

command line options

  • The following pytest options can be used on the command line:
    • –skip_marks

    • –important_marks

    • –run_skips

    • –xfail_skips

pytest ini options

  • The following options can be added to a pytest.ini file:
    • skip_marks: List of marks that will be detected

    • important_marks: List of marks that will warn the user if skipped

    • run_skips: true or false to run tests with a skip mark

    • xfail_skips: true or false to xfail instead of skip the marked tests

    Example:

    [pytest]
    skip_marks = bug_.* .*_tracker .*_known_failure_.*
    important_marks = smoke .*_sanity important_.*
    run_skips = false
    xfail_skips = false

Hooks

The following pytest hooks are available:

  • pytest_match_skip_reason(request, message) - Called if a test is skipped

  • pytest_match_skip_run_skip_warning(request, message) - Called if run_skips is true and a test would otherwise be skipped.

  • pytest_match_skip_important_warning(request, message) - Called when important_marks are skipped

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.

License

Distributed under the terms of the MIT license, “pytest-match-skip” is free and open source software

Issues

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

Release files for pytest-match-skip 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-match-skip 0.2.1
File Size Uploaded
pytest-match-skip-0.2.1.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-match-skip 0.2.1
File Interpreter ABI Platform
pytest_match_skip-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / pytest-match-skip-0.2.1.tar.gz

Download URL pytest-match-skip-0.2.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
000d164103e5765a62b3304741f3e3b373502f562625fa4a69b4776935fe83e6
BLAKE2b-256 checksum
How to use checksums
c23a995772e0e7d28eef4977aed93ec1cc26541f7a09ef88163ab3e7b6587649
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.1

Release files / pytest_match_skip-0.2.1-py3-none-any.whl

Download URL pytest_match_skip-0.2.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e565d042bcc4b86c47ba7799ba24c4b0990eb22c249600573f5c6a845c88cc29
BLAKE2b-256 checksum
How to use checksums
cd8ea1ec85a025742c92c9ba952106de56b1159ba30219bb03f0bd4aa1e0f39e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.1

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

1 release file

0.1.2

2 release files

0.1.1

1 release file

0.1.0

3 release files

0.0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page