twitter-archive / diffy

Find potential bugs in your services with Diffy
https://twitter.com/diffyproject
Apache License 2.0
3.83k stars 368 forks source link

Feature request: minimizing array differences #58

Closed sunnybayz closed 4 years ago

sunnybayz commented 7 years ago

Thank you for releasing this great tool! It's a must-have for testing new releases.

Here is a non-trivial feature request:

Right now, when comparing arrays in responses, diffy does line-by-line comparison. It would be nice if the UI can do smarter diffs (like GitHub comparison and the Linux diff command), i.e., shows line insertions, deletions and changes.

For example, the following arrays only differ by 4 elements (2 deletions and 2 insertions in terms of edit distance), but the UI shows 14 line differences: screen shot 2017-04-16 at 10 26 35 pm