jaredpalmer / cypress-image-snapshot

Catch visual regressions in Cypress
MIT License
882 stars 160 forks source link

How to update Snapshot for specific test instead of all tests #258

Open 787681277 opened 1 year ago

787681277 commented 1 year ago

1) In the doc, --env updateSnapshots=true in order to update the base image files for all of your tests.

2) But How to update Snapshot for specific test instead of all test?

martinhummer commented 1 year ago

Add --spec "path/to/your/spec"

787681277 commented 1 year ago

This command can execute specific spec and update baseline image: If the spec includes only one test case,update Snapshot for one specific test case. If the spec includes multiple test case, update Snapshot for all test cases in the spec.User cannot update Snapshot for one specific test case,right?