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

Add insta-based snapshot tests that cover side-by-side format #730

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Jun 13, 2024

I'm going to fix inline diff issue #704, and found that the inline format isn't
covered by CLI tests. I could duplicate compare_all.sh to test various formats,
but it's uneasy to review that a new formatting is better than the previous
version. I think snapshot testing will help guarantee the output quality without
increasing maintenance burden too much.

If we like the idea, maybe we can migrate some of compare_all.sh tests to the
insta-based ones.

Note that this will add ~10sec to "cargo test" runs.

@yuja yuja force-pushed the push-xqwszzlplvym branch 2 times, most recently from 902cd93 to cde53b4 Compare June 13, 2024 12:58
@yuja yuja force-pushed the push-xqwszzlplvym branch from cde53b4 to f986230 Compare July 24, 2024 09:24
@yuja yuja force-pushed the push-xqwszzlplvym branch from f986230 to 245b464 Compare July 31, 2024 10:38
@yuja yuja force-pushed the push-xqwszzlplvym branch from 245b464 to 35cac98 Compare August 7, 2024 10:50
yuja added 3 commits October 2, 2024 19:58
I don't think this is intentional, and it would introduce test instability on
Windows CI.
I'm going to fix inline diff issue Wilfred#704, and found that the inline format isn't
covered by CLI tests. I could duplicate compare_all.sh to test various formats,
but it's uneasy to review that a new formatting is better than the previous
version. I think snapshot testing will help guarantee the output quality without
increasing maintenance burden too much.

If we like the idea, maybe we can migrate some of compare_all.sh tests to the
insta-based ones.

Note that this will add ~10sec to "cargo test" runs.
@yuja yuja force-pushed the push-xqwszzlplvym branch from 35cac98 to 23fe981 Compare October 2, 2024 11:04
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.

1 participant