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

Highlight diff when comparing data classes #826

Closed
sksamuel opened this issue Jun 12, 2019 · 3 comments
Closed

Highlight diff when comparing data classes #826

sksamuel opened this issue Jun 12, 2019 · 3 comments
Labels
assertions 🔍 Related to the assertion mechanisms within the testing framework. enhancement ✨ Suggestions for adding new features or improving existing ones.
Milestone

Comments

@sksamuel
Copy link
Member

data class Foo(a: String, b: String, c: String)
Foo("a", "b", "c") shouldBe Foo("a", "a", "a")

should output something like

Foo("a", "b", "c") did not equal Foo("a", "a", "a"):
  - diff in field b: "b" did not equal "a"
  - diff in field c: "c" did not equal "a"
```
@sksamuel sksamuel added this to the 3.4 milestone Jun 12, 2019
@sksamuel sksamuel added the enhancement ✨ Suggestions for adding new features or improving existing ones. label Jun 12, 2019
@sksamuel sksamuel mentioned this issue Jun 12, 2019
39 tasks
@sksamuel
Copy link
Member Author

This might be useful to take into account.
https://assertj.github.io/doc/#assertj-core-recursive-comparison

@sksamuel sksamuel mentioned this issue Jul 13, 2019
17 tasks
@sksamuel sksamuel modified the milestones: 3.4, 3.5 Jul 13, 2019
@sksamuel sksamuel added the assertions 🔍 Related to the assertion mechanisms within the testing framework. label Sep 3, 2019
@sksamuel sksamuel modified the milestones: 3.5, 4.0 Sep 3, 2019
@sksamuel sksamuel mentioned this issue Sep 4, 2019
88 tasks
@sksamuel sksamuel mentioned this issue Nov 25, 2019
33 tasks
@sksamuel sksamuel modified the milestones: 4.0, 4.1 Nov 25, 2019
@stale
Copy link

stale bot commented Mar 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Mar 10, 2020
@stale stale bot closed this as completed Mar 17, 2020
@sksamuel sksamuel reopened this Mar 17, 2020
@stale stale bot removed the wontfix label Mar 17, 2020
@stale
Copy link

stale bot commented May 16, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assertions 🔍 Related to the assertion mechanisms within the testing framework. enhancement ✨ Suggestions for adding new features or improving existing ones.
Projects
None yet
Development

No branches or pull requests

2 participants