Spock-reports version 1.4.0 released!

344 views
Skip to first unread message

Renato Athaydes

unread,
Dec 13, 2017, 2:16:25 PM12/13/17
to Spock Framework - User
Hi everyone,

I just wanted to announce the release of spock-reports version 1.4.0.

https://github.com/renatoathaydes/spock-reports

This release is a feature-only release (no bugs were reported since last version!!) and includes:

* multiple report creators can be configured, so you can have both HTML AND AsciiDoc reports, for example, created for your tests at the same time.
* the data table normally shown in example-based specs is now also shown with a single row on each run of @Unroll'ed features.
* it is now possible to programmatically add information to reports.

For example, to add information to the top of your report, you can use the reportHeader method:

def setupSpec() {
    reportHeader "<h2>Browser: ${driver.browser.name}</h2>"
}

And to add information to a particular feature's section, use the reportInfo method:

def "My feature"() { expect: reportInfo "Some information I want to show in the report" }

Hope you enjoy the new features,

Renato Athaydes
Reply all
Reply to author
Forward
0 new messages