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

Generate json snapshots in all snapshot tests #299

Merged
merged 1 commit into from
Aug 22, 2022

Conversation

mystor
Copy link
Collaborator

@mystor mystor commented Aug 19, 2022

Previously these tests would only generate snapshots for the human
output of cargo vet. With this change, json snapshots are also produced.
This both acts as a test for the json output from cargo vet, as well as
a way to see more information about the vet's results, as json output is
occasionally more detailed than human output.

Finally, it also acts as a source of examples for the JSON output.

@mystor
Copy link
Collaborator Author

mystor commented Aug 19, 2022

Ah, the tests are failing because I generated the snapshots on top of #296, oops.

Previously these tests would only generate snapshots for the human
output of cargo vet. With this change, json snapshots are also produced.
This both acts as a test for the json output from cargo vet, as well as
a way to see more information about the vet's results, as json output is
occasionally more detailed than human output.

Finally, it also acts as a source of examples for the JSON output.
@bholley bholley merged commit ac2ce03 into mozilla:main Aug 22, 2022
mystor added a commit to mystor/cargo-vet that referenced this pull request Aug 22, 2022
The changes in mozilla#296 changed some test expectations which were only added
in mozilla#299, so when both were landed, it caused test failures. This fixes
those test failures.
mystor added a commit that referenced this pull request Aug 22, 2022
The changes in #296 changed some test expectations which were only added
in #299, so when both were landed, it caused test failures. This fixes
those test failures.
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.

2 participants