UnitTesting icon indicating copy to clipboard operation
UnitTesting copied to clipboard

Run hook on failed test

Open rchl opened this issue 4 years ago • 0 comments

Maybe there is something like that already but I haven't digged too deep.

It should be useful to have a hook that runs when assertion fails. It should run exactly after it fails, before any cleanup methods are called.

This should allow taking a screenshot of failing tests and upload them as artifacts in CI. Useful for UI tests to potentially speed up figuring out why the test has failed.

rchl avatar Jul 02 '21 09:07 rchl