Comments (9)
@lexanth would you be willing to create a PR with your solution from df2f147? That would be very helpful for all people using this package in CI :)
from cypress-image-snapshot.
Yeah it would be really useful to have a flag (to use on CI) where if images are missing the tests fail but working locally (without a flag) it would create missing images
from cypress-image-snapshot.
Yes, this would be a very useful option ... and I think it should be default behavior: If you don't find the file to match fail the test. Then you can use the updateSnapshots=true
option and update the screenshots locally.
@jaredpalmer Is there some option to add a quick fix for this?
from cypress-image-snapshot.
The library is ded.
from cypress-image-snapshot.
Interesting, not currently. Are you envisioning that at the end of your tests, if any snapshot files exist that were not compared on the run the test would fail?
from cypress-image-snapshot.
Cool, that makes sense. I think we might want to hook into Cypress' test:after:run
event to perform these checks.
from cypress-image-snapshot.
Any update on this?
from cypress-image-snapshot.
I'm interested in this as well. I run Cypress in a CI environment, and I'd like to see a failure on my PRs when new snapshots are created. Two reasons:
- I'd like to be notified that I need to check the new snapshot to make sure it looks as expected.
- A new snapshot could indicate a regression (e.g. an unexpected change in the name of the snapshot, a test that runs when it should have been skipped, etc.)
from cypress-image-snapshot.
Hey Friends,
It seems that this feature is not yet implemented in this library. Is there any fork that has this feature?
from cypress-image-snapshot.
Related Issues (20)
- Where i can see result for --reporter cypress-image-snapshot/reporter ?
- failureThreshold configuration question HOT 1
- cy.matchImageSnapshot() keeps takeing new screenshots and doesn't validate on any HOT 4
- Upgrade to Cypress version 8
- Upgrade to Cypress version 8 HOT 8
- I am getting the expected failure but the image doesn't have the red spots HOT 1
- matchImageSnapshot command options not being respected in cloud containers
- cy.task('Matching image snapshot') failed with the following error HOT 7
- Please upgrade term-img due to xmldom security issue
- Failure Threshold ENV variable or ENV var for config file HOT 1
- Is the project still in maintaining? HOT 2
- Critical Security vulnerability CVE-2022-22912 in latest version 4.0.1 due to [email protected]
- Update to be compatible with Cypress 10 HOT 31
- Is there any way to host the screenshots on cloud storage
- Unable to click more than one snapshot error. "The snapshot is missing..."
- It is impossible to stop updating UI snapshots after migration to Cypress 10
- How to update Snapshot for specific test instead of all tests HOT 2
- How to use Relative path instead of Absolute path for failed screenshot due to cypress-image-snapshot
- Problems that always pass visual regression tests run with the GitHub action
- Blackout parameter not working when combined with filename
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-image-snapshot.