As developer, Unit Test is part of our daily life. With it, we can assure the stability of our code.
XCTest is framework to write unit tests on swift, and i believe
XCTAssertEqual is one if not the most used assert.
but current output for the assertion is like this
Several issue with current output
- it's hard to find which property or variable that cause the error
- if the object that being assert have huge property, much harder to check
inspired by swift-composable-architecture#Diff.swift diff function (used for creating better output for state changes), we can create better
XCTAssertEqual output to highlight the issue.
Let me know what do you think about this idea