We would like to start coding for this with basic html and then we can improve on it. Could you please provide me the details on how to approach on collecting which "then" block has failed...
--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spockframework/-/m_L4m19eIlYJ.
To post to this group, send email to spockfr...@googlegroups.com.
To unsubscribe from this group, send email to spockframewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spockframework?hl=en.
--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spockframework/-/xd0yZxAxMTYJ.
https://github.com/spockframework/spock-ggnyc-2011/tree/master/src/test/groovy/extension/custom
In real life I would probably turn this into a global extension that
doesn't require an annotation.
How do you selectively run tests? With JUnit's Categories or with
Spock's includes/excludes?
I will put more thoughts into how to report which block failed after
0.6 is out. I would appreciate if you helped with the report design or
shared some of your other stuff (e.g. Excel integration).
Cheers,
Peter
--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
Hi,
Am 07.02.2012 02:27 schrieb "Benjamin Gudehus" <hast...@googlemail.com>:
>
> Hi!
>
> Are there any news about an extension for html reports of spock specifications?
this would also be interesting to me.
If not, I could try to do this in the next few weeks and contribute it.
Regards
Jan Ehrhardt
@GuillaumeNormally we use the junit ant task with the xml formatter to output test resultsand then use the junitreport task on the resulting xml files to generate a html report.The html report only includes the method names of the fixture methods, but themost important information is in the strings for the given-when-then and expectblocks. This information should be also included in the html reports.
I don't know how and if we should integration the spock specification string parserinto the junit task or just create a new one.
P.S.: Is there a way to customize the ant task of org.codehaus.groovy.ant.Groovydoc?Something like the doclet tag from the javadoc ant task. I didn't see anything in thedocumenation about that.
The ability to create and use custom styles (Groovydoc style, Javadoc 7 style,Scaladocs style) would be nice! I also saw some extensions on javadoc to createuml diagrams with Graphviz (http://www.umlgraph.org/) and to use markdowninstead of html for the docs (http://code.google.com/p/markdown-doclet/).
I don't want this to be an Ant task. It should be implemented as a Spock
extension so that it works in any environment. Extensions can have their
own configuration, e.g. for the report location. I'd take over the
extension part, but I need someone else to drive the report
design/implementation.
Cheers,
Peter
>>> Twitter: @glaforge <http://twitter.com/glaforge>
> Twitter: @glaforge <http://twitter.com/glaforge>
There's no existing report as so far we are relying on build tools to produce a (JUnit) report. The report should read like a specification. It should contain 1. spec names 2. feature names 3. block descriptions. It shouldn't contain technical words like "class", "method", etc. It should look more like a narrative than a table, and should make good use of color (coding). It could (potentially) be a spin-off of Gradle's JUnit report. The reports produced by Rspec, Cucumber, JBhehave, and EasyB might also be good inspirations.
I don't want this to be an Ant task. It should be implemented as a Spock extension so that it works in any environment. Extensions can have their own configuration, e.g. for the report location. I'd take over the extension part, but I need someone else to drive the report design/implementation.
To post to this group, send email to spockframework@googlegroups.com.
To unsubscribe from this group, send email to
--
You received this message because you are subscribed to the Google Groups
"Spock Framework - User" group.
To post to this group, send email to spockframework@googlegroups.com.
To unsubscribe from this group, send email to
Twitter: @glaforge <http://twitter.com/glaforge>
--
Guillaume Laforge
Groovy Project Manager
SpringSource, a division of VMware
Blog: http://glaforge.appspot.com/
Google+: http://gplus.to/glaforge
--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To post to this group, send email to spockframework@googlegroups.com.
To unsubscribe from this group, send email to spockframework+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To post to this group, send email to spockframework@googlegroups.com.
To unsubscribe from this group, send email to spockframework+unsubscribe@googlegroups.com.
> So it is (1) parsing the specifications, (2) adding information to it
> about
> successful and failed junit tests (also with the output of the power
> assertions) and (3) generate html reports.
An extension has direct access to all static information (spec name,
feature names, block descriptions, etc.). It can register a listener to
get notified about test results. There's also a request to report on
which _blocks_ have passed/failed, but that's a separate feature that
will require some changes to Spock internals.
> I see some use cases for just parse the specs (1), but __without__
> running
> them (2) and generate the html reports (3).
We could add a dryRun switch to Spock's configuration to enable this,
without leaving the JUnit box (i.e. everythings still gets executed via
JUnit).
Cheers,
Peter
Hi Peter,
Am 10.02.2012 17:47 schrieb "Peter Niederwieser" <pnie...@gmail.com>:
>
> There's no existing report as so far we are relying on build tools to produce a (JUnit) report. The report should read like a specification. It should contain 1. spec names 2. feature names 3. block descriptions. It shouldn't contain technical words like "class", "method", etc. It should look more like a narrative than a table, and should make good use of color (coding). It could (potentially) be a spin-off of Gradle's JUnit report. The reports produced by Rspec, Cucumber, JBhehave, and EasyB might also be good inspirations.
that is exacly what I wanted to do. I will also look at Gradle's reports.
>
> I don't want this to be an Ant task. It should be implemented as a Spock extension so that it works in any environment. Extensions can have their own configuration, e.g. for the report location. I'd take over the extension part, but I need someone else to drive the report design/implementation.
The extension part looks pretty simple. I will put it on a separate github repo. It can be moved into Spock's code base later. I'll post a link for testing soon.
Regards
Jan Ehrhardt
--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spockframework/-/IfAJ6sdMw0gJ.
To post to this group, send email to spockfr...@googlegroups.com.
To unsubscribe from this group, send email to spockframewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spockframework?hl=en.