Skip to main content

Static import analysis for thrifty testing.

Project description

pytest-dirty

Static import analysis for thrifty testing.

Overview

With pytest>=8.2 and git, one can easily find what Python files have been changed and what test files to run.

# 1. List files changed in a pull request.
git diff --name-only main..<pr-branch> > changed.txt
# 2. Run `pytest-dirty` to know what chaned files of package `<package>` affect
tests in `tests` directory must be run.
pytest-dirty -s <package> -t tests changed.txt > affected.txt
# 3. Run tests with pytest.
pytest -s -vv @affected.txt

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_dirty-0.0.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

pytest_dirty-0.0.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file pytest_dirty-0.0.1.tar.gz.

File metadata

  • Download URL: pytest_dirty-0.0.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pytest_dirty-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6b0d51696e5233fe87badb9c1853b749c5f71bd956cbdec5853880693050d386
MD5 5f6866bbf9398f28cee39c69e4d2742b
BLAKE2b-256 a7b14f7bb9fe3b11f2854f21797b41d7272b4fed4f2a1c3034f1eec7fc38d5fe

See more details on using hashes here.

File details

Details for the file pytest_dirty-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pytest_dirty-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pytest_dirty-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 572add8ba68815967291f2df1c0241cd099b3571dd0174013cf57b3a9d7edd9e
MD5 9833bc34f8711a99d2eb5cc1e2e4b701
BLAKE2b-256 677de14fe797803754357eea5262de1612b62b972c7f934a689ca1b31840c741

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