eWert-Online / OSnap

OSnap is a snapshot testing tool, which mainly focuses on speed and ease of use.
https://ewert-online.github.io/OSnap/
152 stars 2 forks source link

Tests not found #27

Closed ntzrbtr closed 1 year ago

ntzrbtr commented 1 year ago

This is my config:

---
baseUrl: https://xyz.com/
fullScreen: true
threshold: 3
parallelism: 10
testPattern: "./visual-regression-tests/**/*.osnap.yaml"
snapshotDirectory: "./snapshots/live/"
defaultSizes:
    -   name: xxl
        width: 1600
        height: 900
    -   name: xl
        width: 1366
        height: 768
    -   name: md
        width: 1024
        height: 576
    -   name: sm
        width: 768
        height: 432
    -   name: xs
        width: 640
        height: 360
    -   name: xxs
        width: 320
        height: 180

My first test is placed in file "visual-regression-tests/home.osnap.yaml", but the tool does not find the test. What am I doing wrong?

ntzrbtr commented 1 year ago

I've set up a test repo under https://github.com/ntzrbtr/osnap-test, where I have one test set up, but that one is not found.

ntzrbtr commented 1 year ago

It works now, thanks for the update!