Skip to main content

A pytest plugin that only selects meaningful python tests to run.

Project description

pytest-snob

pytest-snob is a pytest plugin that leverages the snob library (see https://github.com/alexpasmantier/snob) to filter tests to execute in a given application based on the contents of a range of commits

Rationale

Most of the time, running your full test suite is a waste of time and resources, since only a portion of the files has changed since your last CI run / deploy.

By leveraging snob, this pytest plugin will accurately determine which tests are relevant for a given changeset and only run those.

How does it work?

snob is a rust library (which we produce a python package from using Maturin / Py03) that efficiently parses the dependency graph of your python codebase and as such, can accurately determine which files are impacted by your changes.

For more information, see the snob github repository

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_snob-0.1.14.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_snob-0.1.14-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file pytest_snob-0.1.14.tar.gz.

File metadata

  • Download URL: pytest_snob-0.1.14.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pytest_snob-0.1.14.tar.gz
Algorithm Hash digest
SHA256 728202184da2c563314f3ecc6c005a1f9b0927a6e7813d7a8ab860d251e4853c
MD5 393db1419c5e889cbe36a20752f5bd1a
BLAKE2b-256 79bd5449f179500a87c7b2a7bfe86483e197b0a680e19edaa53c31fb57c5e26a

See more details on using hashes here.

File details

Details for the file pytest_snob-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: pytest_snob-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pytest_snob-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 fdc59341b3e5ec36238099766abdf8c2747b3943c67b81f64dba8da75fcc57f4
MD5 cb2bd92f910a2b7f91eb19d60ff0e5c8
BLAKE2b-256 0102d92e5a366adc0f9ed2d8ccb8a978419e780267f1928489792930e433bb7e

See more details on using hashes here.

Supported by

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