A Pytest plugin to ignore tests during collection without reporting them in the test summary.
Project description
Pytest Dryrun Plugin
A Pytest plugin to ignore tests during collection without reporting them in the test summary.
Usage
When the --dryrun
flag is passed to Pytest, only tests marked with dryrun
will be collected and run.
@pytest.mark.dryrun
def test_thing_one():
"""This test will be run, even during dryruns"""
box = get_box()
assert "thing one" in box
def test_thing_two():
"""This test will not by run if the `--dryrun` flag is given to Pytest"""
box = get_box()
assert "thing two" in box
If the --no-dryrun
flag is given, only tests not marked with dryrun
will be
collected, meaning that in the example above, only test_thing_two
will be
run.
The --dryrun
and --no-dryrun
arguments are mutually-exclusive.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest_dryrun-0.1.0.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for pytest_dryrun-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 802096b39c2e8d497f592dd7b5f7db243388ca65683cadc232a156e310c51d1d |
|
MD5 | 7a419add26da9ddb6329ea67fb4368b7 |
|
BLAKE2b-256 | 45e3b62556c6e523b09085380f3c8879ee252467e3de048e959ba17d44a6e700 |