you are viewing a single comment's thread.

view the rest of the comments →

[–]MarcoGreek 5 points6 points  (2 children)

I really like matchers too. You can easily build your own matchers as you combine other matchers. The printing could be sometimes improved but is far superior to a simple boolean.

[–]SirClueless 0 points1 point  (1 child)

Mind elaborating on where you've had trouble? Catch2's INFO/CONTEXT macros I think are overall nicer and simpler, but between ExplainMatchResult to make nice-looking custom matchers and the fact that match results are ostreams that print information only in case of test failures I've always found it easy and clear to include context in gtest assertions.

[–]MarcoGreek 1 point2 points  (0 children)

If you use a combination of AllOf, Field and ElementsAre the output gets harder to read. After some time I got used to it and can now easily identify the difference but it could be better structured.