Skip to main content

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


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 details)

Uploaded Source

Built Distribution

pytest_dryrun-0.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file pytest_dryrun-0.1.0.tar.gz.

File metadata

  • Download URL: pytest_dryrun-0.1.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.4 Linux/6.3.11-200.fc38.x86_64

File hashes

Hashes for pytest_dryrun-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c66906a1c9b261d226921d191e7a608936f2f1858b8c7d6ab11fb6032f5b0d41
MD5 202ed51aa10c2ecd59d36fdcfd3b0f6e
BLAKE2b-256 b7b51ea56193cf2efaf8373d572a0c54d9718096aa9aca0a03f23aa9f6c46245

See more details on using hashes here.

File details

Details for the file pytest_dryrun-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_dryrun-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.4 Linux/6.3.11-200.fc38.x86_64

File hashes

Hashes for pytest_dryrun-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 802096b39c2e8d497f592dd7b5f7db243388ca65683cadc232a156e310c51d1d
MD5 7a419add26da9ddb6329ea67fb4368b7
BLAKE2b-256 45e3b62556c6e523b09085380f3c8879ee252467e3de048e959ba17d44a6e700

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