Vedro VCS Changed
A Vedro plugin that runs only test scenarios affected by changes in the current VCS branch. It combines VCS diff with Python AST import analysis to determine which scenarios are transitively affected by modified files.
Features
- VCS-agnostic — supports git (default) and arc, extensible to other VCS
- Transitive dependency analysis — if a mock, context, schema, or page object changes, all scenarios that import it (directly or transitively) will run
- Zero external dependencies — uses only
subprocessandastfrom Python stdlib (plus vedro)
Installation
$ pip install vedro-vcs-changed
Activate the plugin in your vedro.cfg.py:
import vedro
import vedro_vcs_changed
class Config(vedro.Config):
class Plugins(vedro.Config.Plugins):
class VCSChanged(vedro_vcs_changed.VedroVCSChanged):
enabled = True
Usage
Git (default)
$ vedro run --changed-against-branch=main
Arc (Arcadia)
$ vedro run --changed-against-branch=trunk --changed-vcs=arc
Options
| Option | Description | Default |
|---|---|---|
--changed-against-branch |
Branch to compare against | (required) |
--changed-vcs |
VCS backend: git, arc |
git |
How It Works
- Runs VCS diff to get the list of changed
.pyfiles in the current branch - Parses all
.pyfiles in the project using Python AST to extract imports - Builds a reverse dependency graph (file → set of files that import it)
- Starting from each changed file, traverses the reverse graph (BFS) to find all transitively affected scenario files
- Ignores all scenarios that are not affected
Metadata
Release files for vedro-vcs-changed 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vedro_vcs_changed-0.1.0.tar.gz | 14.6 kB | Without provenance | Details for vedro_vcs_changed-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vedro_vcs_changed-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for vedro_vcs_changed-0.1.0-py3-none-any.whl |
Total release size: 27.7 kB
Release files / vedro_vcs_changed-0.1.0.tar.gz
| Download URL | vedro_vcs_changed-0.1.0.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fe5d39fd167a4e1f5081b22ddc91b8733d40365a06f91e07446208960b19a4d
|
|
BLAKE2b-256 checksum How to use checksums |
3ffcf0d21c635a573f083900fdcff3e7377e5c5fa1e9e16036989d56a30d1f59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / vedro_vcs_changed-0.1.0-py3-none-any.whl
| Download URL | vedro_vcs_changed-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d129caa59bbc744313f7bd2d756153ce2d00cafbcc6cc0909523f27ba7e34544
|
|
BLAKE2b-256 checksum How to use checksums |
11cf1f59ff2a179fe92565fcad3fac94a1f4afec7b80d57a7d13872f8e44fbbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for vedro-vcs-changed 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.