-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some snapshot test infrastructure (#610)
Fixes #608 This does not add a wide gamut of tests - I imagine that the `test_scenes` will provide some good fodder here. There are some quality-of-life features included: - You can use `VELLO_TEST_CREATE=all` to create new tests. It is recommended to set this on your local machine (and it won't be set on CI) - You can use `VELLO_TEST_UPDATE=all` to update with new contents if the test fails. (Note that if there's a minor change which passes the test, this won't update) These variables can also filter to specific tests if needed. The saved snapshots are always created using the GPU renderer, but it is set up to be easy to use the CPU renderer for tests as well. Using `cargo nextest` for running tests is recommended; indeed, it seems to be now required, as the tests segfault without it
- Loading branch information
Showing
20 changed files
with
2,123 additions
and
1,444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.