UnitTesting
UnitTesting copied to clipboard
Run hook on failed test
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.