Gets notified whenever a report is taken. Reporting listeners are notified by reporters whenever reports are taken. This can be used to output links to report files which is sometimes utilized by continuous integration servers.
They can be registered via the config mechanism…
reportingListener = new ReportingListener() { void onReport(Reporter reporter, ReportState reportState, ListreportFiles) { reportFiles.each { println "Report taken: $it.absolutePath" } } }
Type Params | Return Type | Name and description |
---|---|---|
|
void |
onReport(Reporter reporter, ReportState reportState, List<File> reportFiles) Called when a report is taken. |
Called when a report is taken.
reporter
- The reporter instance that created the report.reportState
- Information about what was reported on.reportFiles
- The report files that the reporter created.Groovy API Documentation for Geb 3.0 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org