Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
BINDGEN_OVERWRITE_EXPECTED
for recording tests
Currently when tests are run all expectations are overwritten. This makes it hard to debug a failing test, as every time one reruns `cargo test` the expectation is updated and subsequently passes. With this change we now check the `BINDGEN_OVERWRITE_EXPECTED` env variable. If set, we overwrite the expectation. If not, the contents stay the same and the test continues to fail.
- Loading branch information
Showing
4 changed files
with
20 additions
and
4 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
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