Skip to content

feat: Add visual regression testing tool.#3

Merged
steveworley merged 3 commits intomainfrom
feat/visual-regression-testing
Nov 11, 2025
Merged

feat: Add visual regression testing tool.#3
steveworley merged 3 commits intomainfrom
feat/visual-regression-testing

Conversation

@steveworley
Copy link
Contributor

@steveworley steveworley commented Nov 11, 2025

What's changed?

  • Adds a new qc vrt command to perform visual regression testing

One of the primary use cases for Quant is a DR environment tool, it creates static representations of production websites and then can act as an origin failover in the event of origin downtime. To ensure that Quant is fresh, this command can be used to validate a quant domain against a production domain.

npm run start -- vrt

> @quantcdn/quant-cloud-cli@0.3.0 start
> node dist/index.js vrt

█ QUANT CLI
[VRT] Running VRT for 1 project(s)...
[VRT] Threshold: 10.00%, Max Pages: 1, Max Depth: 1
[VRT] 
Testing project: test-dr
✔ Quant URL: 861176.quant-cloud.quantgovsites.com                                                                                                                
[VRT] Remote URL: https://www.test.com.au
✔ Found 1 pages to test                                                                                                                                         
✖ / FAIL (36.29%)                                                                                                                                               
[VRT] 
=== VRT Summary ===
[VRT] Total Tests: 1
[VRT] Passed: 0
[VRT] Failed: 1
[VRT] Errors: 0
[VRT] 
Results by Project:
[VRT] 
test-dr:
[VRT]   ✓ 0 passed
[VRT]   ✗ 1 failed

Supports command line attributes for single runs and configuration files for extended runs.

$ cat ~/.vrt-config.json
{
    "threshold": 0.1,
    "maxPages": 1,
    "maxDepth": 1,
    "quantAuth": "test:test",
    "projects": {
        "test-dr": "https://www.test.com.au"
    }
}

@steveworley steveworley merged commit 2c30339 into main Nov 11, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant