Skip to content

Vedro plugin that runs test scenarios which have changed relative to the specified git branch

License

Notifications You must be signed in to change notification settings

vedro-universe/vedro-git-changed

Repository files navigation

Vedro Git Changed

Codecov PyPI PyPI - Downloads Python Version

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:

  1. Install the package using pip:
$ pip3 install vedro-git-changed
  1. 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

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

About

Vedro plugin that runs test scenarios which have changed relative to the specified git branch

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published