rapidcheck icon indicating copy to clipboard operation
rapidcheck copied to clipboard

Capture googletest output once after shrinking only

Open zombiecalypse opened this issue 5 years ago • 0 comments

Currently gtest will log a failure for each EXPECT_* in the test, but with shrinking this leads to each shrinking step to have it's own failure.

I learned that wrapping testing::ScopedFakeTestPartResultReporter from <gunit/gunit-spi.h> allows to redirect all failure messages into a collection so that it will only be reported when replayed.

zombiecalypse avatar Sep 26 '19 08:09 zombiecalypse