https://github.com/vedro-universe/vedro-git-changed
Vedro plugin that runs test scenarios which have changed relative to the specified git branch
https://github.com/vedro-universe/vedro-git-changed
vedro vedro-plugin
Last synced: 11 months ago
JSON representation
Vedro plugin that runs test scenarios which have changed relative to the specified git branch
- Host: GitHub
- URL: https://github.com/vedro-universe/vedro-git-changed
- Owner: vedro-universe
- License: apache-2.0
- Created: 2024-01-03T08:49:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-23T19:12:04.000Z (almost 2 years ago)
- Last Synced: 2025-05-18T22:13:37.303Z (about 1 year ago)
- Topics: vedro, vedro-plugin
- Language: Python
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vedro Git Changed
[](https://codecov.io/gh/vedro-universe/vedro-git-changed)
[](https://pypi.python.org/pypi/vedro-git-changed/)
[](https://pypi.python.org/pypi/vedro-git-changed/)
[](https://pypi.python.org/pypi/vedro-git-changed/)
[vedro-git-changed](https://pypi.org/project/vedro-git-changed/) is a [Vedro](https://vedro.io) 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:
```shell
$ vedro plugin install vedro-git-changed
```
Manual
To install manually, follow these steps:
1. Install the package using pip:
```shell
$ pip3 install vedro-git-changed
```
2. Next, activate the plugin in your `vedro.cfg.py` configuration file:
```python
# ./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:
```shell
$ 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:
```shell
$ 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:
```shell
$ vedro run --changed-against-branch=main --changed-no-fetch
```