Skip to main content

pytest-match-skip

See Build Status on Travis CI See Build Status on AppVeyor https://badge.fury.io/py/pytest-match-skip.svg

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.

Metadata

Release files for pytest-match-skip 0.1.2

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.1.2
File Size Uploaded Provenance Actions
pytest-match-skip-0.1.2.tar.gz 5.0 kB Without provenance Details for pytest-match-skip-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 13.4 kB

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

Download URL pytest-match-skip-0.1.2.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
47cf4fcbed2566c78f0abef7166fd0933dbeda6ab5467ec1623f69463060d68d
BLAKE2b-256 checksum
How to use checksums
0e411481b492a608aac1fa2fb9bcdb0944989825a066927bf27532c42e8b21a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pytest_match_skip-0.1.2-py2.py3-none-any.whl

Download URL pytest_match_skip-0.1.2-py2.py3-none-any.whl
Size 8.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4125e7515b68c2982cdfe6dced474d5d77c1d9de5c918752fe591a156f123340
BLAKE2b-256 checksum
How to use checksums
8702253a33a84365a978a1ce91fae55d2e4a58f3b7a1da311ff1fe003a283ad1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pytest-match-skip 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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