Table of Contents
| API Documentation: | TestReport |
|---|
Generates an HTML test report from the results of one or more Test tasks.
| Property | Description |
destinationDir | The directory to write the HTML report to. |
testResultDirs | The set of binary test results to include in the report. |
| Method | Description |
reportOn(results) | Adds some results to include in the report. |
File destinationDir
The directory to write the HTML report to.
FileCollection testResultDirs
The set of binary test results to include in the report.
void reportOn(Object... results)
Object...Adds some results to include in the report.
This method accepts any parameter of the given types:
- A
Testtask instance. The results from the test task are included in the report. The test task is automatically added as a dependency of this task. - Anything that can be converted to a set of
Fileinstances as perProject.files(java.lang.Object[]). These must point to the binary test results directory generated by aTesttask instance. - An
Iterable. The contents of the iterable are converted recursively.