Hi Ben,

I know by default Geb creates a report if the test reached the end but
> failed.


I don't think that this is entirely true. The time of when the report is
being taken upon a test failure is test framework (as in Spock, JUnit,
TestNG) integration dependent but I believe that the report is taken as
soon as the hook used by the integration reports a failure. For some of the
integrations it might actually happen after cleanup code is executed. Can
you please describe in detail which test framework you are using, what
behaviour with regards to reporting on failureyou are observing and what
behaviour you are expecting?


> Is there a way to create a report if an exception was thrown during the
> test?


That will depend on the test framework we are talking about exposing a hook
which is called as soon as an exception is being thrown from within a test.
If there is a better mechanism for detecting the exception being thrown or
test failure occurring than what we are currently using for the framework
in question then I'd be more than happy to switch the integration to that
hook.

Marcin

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/CA%2B52dQQ6E0J2ezq-ET%3D%3DSYAvurd85VEOMJf50MfGaPokp3MjBQ%40mail.gmail.com.

Reply via email to