You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve Behat output to include diffs on failed comparisons #17
When Behat compares two elements and finds them to not match, it would be helpful for debugging purposes to have a diff available that shows the exact difference between the two elements, like in this example output:
The SebastianBergmann\Diff\Differ class is available and can be used for that.
Reacted by Wojciech Smoliński, Pascal Birchler and Jody Lognoul
Activity
swissspidy commentedon Dec 11, 2024
Looks like an upcoming Behat release will have better diffs out of the box, see Behat/Behat#1532
Not in v3.16 yet, so have to wait for the next one.
Requires PHP 7.2+ though, see #228
Alternatively we can copy that logic of course.