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.0.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for pytest_dirty-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2834a17c689a4ad5a1d12cf02776a4f84549db89a76b7d38cf39cb1387fe0a15 |
|
MD5 | 115f9c6017b58927d39e3ee431f29f08 |
|
BLAKE2b-256 | d8a6d952f355fd09e3764e048ea3034856f951d4e332a864337416aa3f712ce4 |