An open API service indexing awesome lists of open source software.

https://github.com/juri/xctwdiff

Highlight differences in XCTAssertEqual output
https://github.com/juri/xctwdiff

swift testing xctest

Last synced: over 1 year ago
JSON representation

Highlight differences in XCTAssertEqual output

Awesome Lists containing this project

README

          

# xctwdiff

xctwdiff reads the message of a failed `XCTAssertEqual` check from stdin and runs [wdiff] and [colordiff]
on the two sections. It assumes you don't write messages in your equality checks.

It's a Xcode command line tool project, so build and archive and copy the binary out of the archive
somewhere along your path, or alternatively add a hashbang line to the top and use it as a script.

It's written in Swift 4.1.

[wdiff]: https://www.gnu.org/software/wdiff/
[colordiff]: https://www.colordiff.org