Skip to main content

A CLI tool for visual regression testing

Project description

Visual Regression Testing (VRT) CLI Tool

This CLI tool is designed to help with visual regression testing by comparing images from two directories (vrt-expected and vrt-actual). It also provides functionality to approve new baseline images.

Features

  • Initialization: Create the necessary directories for storing expected and actual images.
  • Comparison: Compare images in the vrt-expected and vrt-actual directories and generate a difference image if discrepancies are found.
  • Approval: Approve actual images and move them to the vrt-expected directory, renaming them as required.

Installation

pip install vrt_python

Usage

1. Initialize Directories

To set up the necessary directories (vrt-expected and vrt-actual), run:

vrt init

This command will create the following directories:

  • vrt-expected: Where you store your expected baseline images.
  • vrt-actual: Where you store the actual images to compare against the baseline.

2. Compare Images

To compare images between the vrt-expected and vrt-actual directories, run:

vrt compare

This command will:

  • Compare each image in vrt-expected with the corresponding image in vrt-actual.
  • Generate a difference image in the vrt-difference directory if discrepancies are found.
  • Print the percentage of difference for each image.

3. Approve Actual Images

To approve the actual images and move them to the vrt-expected directory, run:

vrt approve

This command will:

  • Copy images from the vrt-actual directory to the vrt-expected directory.
  • Rename the images by replacing the actual_ prefix with expected_.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vrt_python-0.2.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vrt_python-0.2.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file vrt_python-0.2.0.tar.gz.

File metadata

  • Download URL: vrt_python-0.2.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.18

File hashes

Hashes for vrt_python-0.2.0.tar.gz
Algorithm Hash digest
SHA256 942a1f1a2de6a354d8f662d2c9ef142c32add615e536491903fb67b1979c70c1
MD5 6a0d095d6789336044cc74cc668444b0
BLAKE2b-256 5633cc4ea58bb475dca2bd480770dd96f955d5e3d070dbc91e8996643fff6c7a

See more details on using hashes here.

File details

Details for the file vrt_python-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: vrt_python-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.18

File hashes

Hashes for vrt_python-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e087a5f37116cf70be4fd6387ab6ba906079dc92fc5bfb3217d13bd4d3f2a9c7
MD5 0095894c610971e71a468735e03de0c0
BLAKE2b-256 2cbed0bfaa0f2b88cf0c3d35697e646c2a4de2e034725e344d5fa60cd35bcc7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page