Spock html reports

2,109 views
Skip to first unread message

Attila Franczen

unread,
Apr 10, 2015, 9:54:46 AM4/10/15
to spockfr...@googlegroups.com
Hi!

I'm quite new to spock (I've just started to use geb with spock) and am wondering how I could get spock to generate me a nice html report from the tests.
I can't figure out the how, and can't really imagine that this is not a core spec.

Could you push me to the right direction, please?

Cheers,
Attila

Patrick van Dissel

unread,
Apr 10, 2015, 11:30:36 AM4/10/15
to spockfr...@googlegroups.com
In maven I believe you can use the maven-surefire-plugin to generate the
spock reports for you, just like it does for junit/testng.
Gradle's default report files also work for spock.

If you want more BDD-like reports from spock, you can use the
spock-reports extention:
- https://github.com/renatoathaydes/spock-reports

Hope that helps :)
/Patrick
> --
> You received this message because you are subscribed to the Google
> Groups "Spock Framework - User" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to spockframewor...@googlegroups.com
> <mailto:spockframewor...@googlegroups.com>.
> To post to this group, send email to spockfr...@googlegroups.com
> <mailto:spockfr...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/spockframework.
> For more options, visit https://groups.google.com/d/optout.

alpheratz

unread,
Apr 11, 2015, 2:50:18 AM4/11/15
to spockfr...@googlegroups.com

You say you are using Geb, Geb creates its own reports. You need to look at:

http://www.gebish.org/manual/current/reporting.html
http://www.gebish.org/manual/current/testing.html#reporting

BOB
Reply all
Reply to author
Forward
0 new messages