Vedro Git Changed
vedro-git-changed is a Vedro plugin that runs test scenarios which have changed relative to the specified git branch.
Installation
Quick
For a quick installation, you can use a plugin manager as follows:
$ vedro plugin install vedro-git-changed
Manual
To install manually, follow these steps:
- Install the package using pip:
$ pip3 install vedro-git-changed
- Next, activate the plugin in your
vedro.cfg.pyconfiguration file:
# ./vedro.cfg.py
import vedro
import vedro_git_changed
class Config(vedro.Config):
class Plugins(vedro.Config.Plugins):
class VedroGitChanged(vedro_git_changed.VedroGitChanged):
enabled = True
Usage
To run test scenarios that have been modified compared to the main branch, use the following command:
$ vedro run --changed-against-branch=main
By default, the plugin caches git fetch results for 60 seconds. To change this duration, specify a different cache duration in seconds with the --changed-fetch-cache argument.
For example, to disable caching, set the cache duration to 0:
$ vedro run --changed-against-branch=main --changed-fetch-cache=0
To disable fetching the latest changes from the remote repository, use the --changed-no-fetch argument:
$ vedro run --changed-against-branch=main --changed-no-fetch
Metadata
Release files for vedro-git-changed 0.2.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 | |
|---|---|---|---|
| vedro_git_changed-0.2.0.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vedro_git_changed-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.9 kB
Release files / vedro_git_changed-0.2.0.tar.gz
| Download URL | vedro_git_changed-0.2.0.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d962ed0747bd5cefb6a76a088d884b907c0c4268dd8650e9c979a247b95cad49
|
|
BLAKE2b-256 checksum How to use checksums |
83b39fadedb928ee73dd516a5afca1fdf3179b8f800ef225520c5b3ab4b80cb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / vedro_git_changed-0.2.0-py3-none-any.whl
| Download URL | vedro_git_changed-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be32bd53d8eef60fcc2535124892275062686fcd19336eddb55b51e545a797f4
|
|
BLAKE2b-256 checksum How to use checksums |
e364dd8e0d2ae75930bf7a9548290fa8294137c2693019eb88ac576368551dea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|