Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
787681277 opened this issue Sep 13, 2022 · 2 comments
Open

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

787681277 opened this issue Sep 13, 2022 · 2 comments

Comments

@787681277
Copy link

787681277 commented Sep 13, 2022

  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?

@787681277 787681277 changed the title How to How to update Snapshot for specific test instead of all tests Sep 13, 2022
@martinhummer
Copy link

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

@787681277
Copy link
Author

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?

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

No branches or pull requests

2 participants