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

Introduce pretty_assertions #762

Merged
merged 3 commits into from
Sep 13, 2023
Merged

Introduce pretty_assertions #762

merged 3 commits into from
Sep 13, 2023

Conversation

yykamei
Copy link
Owner

@yykamei yykamei commented Sep 13, 2023

This crate tests itself by seeing the difference between actual output to standard output and expected bytes.

Previously, the built-in assert_eq does not show the difference between the left/right values by showing what characters are different from the other side. So, it was difficult for developers to figure out why tests fail.

From this motivation, I want to introduce pretty_assertions, which provides assert_eq with more colorful diffs.

See the following repository for more details about pretty_assertions.

https://github.com/rust-pretty-assertions/rust-pretty-assertions

This crate tests itself by seeing the difference between actual output
to standard output and expected bytes.

Previously, the built-in `assert_eq` does not show the difference
between the left/right values by showing what characters are different
from the other side. So, it was difficult for developers to figure out
why tests fail.

From this motivation, I want to introduce `pretty_assertions`,
which provides `assert_eq` with more colorful diffs.

See the following repository for more details about `pretty_assertions`.

https://github.com/rust-pretty-assertions/rust-pretty-assertions
@yykamei yykamei merged commit 2de8eae into main Sep 13, 2023
8 checks passed
@yykamei yykamei deleted the refactor-tests branch September 13, 2023 14:52
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