You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great, if it was possible to implement an interface (say: ISummaryInfo) that would allow me to add custom build information (like information from GebConfig.groovy) to my summary screen.
I invision that I could have a custom class implementing ISummaryInfo and have a configuration option like com.athaydes.spockframework.report.ISummaryInfo=my.package.MySummaryInfo
The summary info could just be:
interface ISummaryInfo {
Map getSummaryInfo()
}
and in TemplateReportAggregator this could be added:
I hope you are familiar with the extension methods spock-reports adds to spock.lang.Specification.
Basically, it lets any sub-class of Specification to add info to a spec report by calling the reportInfo(info) and reportHeader(header) methods.
Would this not be enough for what you are suggesting? Or in your case, the information really needs to go into the summary report? What kind of information exactly are you planning to add?
It would be great, if it was possible to implement an interface (say:
ISummaryInfo
) that would allow me to add custom build information (like information fromGebConfig.groovy
) to my summary screen.I invision that I could have a custom class implementing
ISummaryInfo
and have a configuration option likecom.athaydes.spockframework.report.ISummaryInfo=my.package.MySummaryInfo
The summary info could just be:
and in
TemplateReportAggregator
this could be added:The setup of the
summaryInfo
should happen where the configuration is normally loaded, and it should be injected intoTemplateReportAggregator
Let me know what you think.
The text was updated successfully, but these errors were encountered: