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 details)
Built Distribution
File details
Details for the file pytest_dirty-0.0.0.tar.gz
.
File metadata
- Download URL: pytest_dirty-0.0.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14cf00681c40b31bab713611139db1d199b7410bd81a1c2ac7e8dd7a3e666110 |
|
MD5 | 94c67f5a4bafaf755acabd28024407f8 |
|
BLAKE2b-256 | 818b1b859d36a5c8d6da6f2cf59e302328d56e2abb89e94663170a574fdb9186 |
File details
Details for the file pytest_dirty-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_dirty-0.0.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2834a17c689a4ad5a1d12cf02776a4f84549db89a76b7d38cf39cb1387fe0a15 |
|
MD5 | 115f9c6017b58927d39e3ee431f29f08 |
|
BLAKE2b-256 | d8a6d952f355fd09e3764e048ea3034856f951d4e332a864337416aa3f712ce4 |