spockframework / spock

The Enterprise-ready testing and specification framework.
https://spockframework.org
Apache License 2.0
3.53k stars 1 forks source link

Spock reports #572

Open gajo4256 opened 8 years ago

gajo4256 commented 8 years ago

Hi,

is there a timeline when new spock-reports module (Ninja Commander example) will be available? I.e. is there any release planned in the near future? Would be nice to try it, looks promising.

Thnx

michalmela commented 8 years ago

I'd just like to add that while Ninja Commander example certainly have a nice, modern look, in my (humble) team there is a notion that reports generated by Serenity BDD (former Thucydides) are currently regarded as the state of the art when it comes to BDD reporting. Some features I believe would be nice (some of them are already in athaydes' spock reports plugin):

solidjb commented 7 years ago

Is the source available anywhere that produced the Ninja Commander example? If so, its possible we could help productionize it...

solidjb commented 7 years ago

never mind, I was able to find the code. At the time of this comment, the code was located https://github.com/spockframework/spock/tree/master/spock-report. The code that generates data for the report itself is actually part of spock-core and has been officially released.

You can enable this by turning on the following JVM flags:

-Dspock.logFileDir=... -Dspock.logFileName=... -Dspock.configuration=... (e.g. SpockSampleTestConfig.groovy)

Where SpockSampleTestConfig.groovy looks something like this:

report {
  enabled true
  logFileSuffix System.currentTimeMillis().toString()
  issueUrlPrefix "http://my.issue.url/"
}

The reporting code that lives in spock-report actually reads this log file output to create the report. The report code as it stands right now appears to only work in a gradle build context.

Are any updates to this functionality anywhere on the spock roadmap?

leonard84 commented 7 years ago

I've added support for iterations to the reporting module, you can check it out here https://github.com/leonard84/spock/tree/report-iterations as for the roadmap it won't get into 1.1 but I want to have it in 1.2

gajo4256 commented 6 years ago

@leonard84 the link you provided doesn't work anymore

leonard84 commented 6 years ago

@gajo4256 because it is merged into master