Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Add BLESS env option #151

Merged
merged 2 commits into from
Jun 10, 2021
Merged

Add BLESS env option #151

merged 2 commits into from
Jun 10, 2021

Conversation

pepyakin
Copy link
Contributor

@pepyakin pepyakin commented Jun 9, 2021

Right now if there is a diff between the actual and expected results,
the expected file will be overwritten. This may be annoying. To make it
controlled we introduce BLESS option.

This means that the expected files won't be regenerated unless this
environment variable is set.

Therefore to regenerate the tests use:

BLESS=1 cargo test

Right now if there is a diff between the actual and expected results,
the expected file will be overwritten. This may be annoying. To make it
controlled we introduce BLESS option.

This means that the expected files won't be regenerated unless this
environment variable is set.

Therefore to regenerate the tests use:

    BLESS=1 cargo test
@pepyakin pepyakin requested a review from athei June 9, 2021 17:20
Copy link
Member

@athei athei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

tests/diff.rs Outdated Show resolved Hide resolved
Co-authored-by: Alexander Theißen <alex.theissen@me.com>
@pepyakin pepyakin merged commit 0cead7b into master Jun 10, 2021
@pepyakin pepyakin deleted the ser-bless branch June 10, 2021 09:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants