dimanche 3 juin 2018

Find the outcome/status of a test in Specification.cleanup()

It seems a reasonable thing to want to do... e.g. log something when a test fails, and not if it doesn't.

I've found this, for example, from 2013... there were no both simple and effective answers at the time. What about now?

I hoped a suitable property/method might be found in org.spockframework.runtime.SpecificationContext ... or maybe org.spockframework.runtime.model.SpecInfo ... but I can't see anything.

Aucun commentaire:

Enregistrer un commentaire