Runs only scenarios that have changed based on git diff against a specified branch
Project description
Vedro Git Changed
vedro-git-changed is a Vedro plugin that runs test scenarios that have been changed relative to a 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.py
configuration 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
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
Built Distribution
Hashes for vedro_git_changed-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e55d7734d4540c84313aa64ec7d8a50a55094bdb94e29fec8602a37efbc68680 |
|
MD5 | c7e3a358b1331f05db13c9e67252e6d0 |
|
BLAKE2b-256 | a05abc711281bfe1d9bac61420287f10c6c69b0d6a703adf245f0bcfab12f7a4 |