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
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_dirty-0.0.1.tar.gz
(12.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b0d51696e5233fe87badb9c1853b749c5f71bd956cbdec5853880693050d386
|
|
| MD5 |
5f6866bbf9398f28cee39c69e4d2742b
|
|
| BLAKE2b-256 |
a7b14f7bb9fe3b11f2854f21797b41d7272b4fed4f2a1c3034f1eec7fc38d5fe
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
572add8ba68815967291f2df1c0241cd099b3571dd0174013cf57b3a9d7edd9e
|
|
| MD5 |
9833bc34f8711a99d2eb5cc1e2e4b701
|
|
| BLAKE2b-256 |
677de14fe797803754357eea5262de1612b62b972c7f934a689ca1b31840c741
|