giorgiosironi / eris

Eris is a porting of Quickcheck and property-based testing tools to the PHP and PHPUnit ecosystem.
MIT License
411 stars 32 forks source link

Does eris shrink when an assertion in the code under test fails #152

Open blackwolf12333 opened 2 years ago

blackwolf12333 commented 2 years ago

I have a project that is using php assertions to verify some pre/postconditions and my regular unit tests fail if such assertions fail because phpunit by default has convertWarningsToExceptions on true.

However I'm not sure how to make the shrunk input visible when this happens, do you guys have any suggestions?

ilario-pierbattista commented 2 years ago

Hi @blackwolf12333 have you tried to log the input generated by eris? -> https://eris.readthedocs.io/en/latest/listeners.html#log

It would be great if you could provide a minimum example of this issue.