|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.tasks.testing.TestReport
@Incubating public class TestReport
Generates an HTML test report from the results of one or more Test tasks.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.gradle.api.Task |
|---|
Task.Namer |
| Field Summary |
|---|
| Fields inherited from interface org.gradle.api.Task |
|---|
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE |
| Constructor Summary | |
|---|---|
TestReport()
|
|
| Method Summary | |
|---|---|
File |
getDestinationDir()
Returns the directory to write the HTML report to. |
FileCollection |
getTestResultDirs()
Returns the set of binary test results to include in the report. |
void |
reportOn(Object... results)
Adds some results to include in the report. |
void |
setDestinationDir(File destinationDir)
Sets the directory to write the HTML report to. |
void |
setTestResultDirs(Iterable<File> testResultDirs)
Sets the binary test results to use to include in the report. |
| Methods inherited from class org.gradle.api.internal.AbstractTask |
|---|
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getGroup, getInputs, getLogger, getLogging, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getStandardOutputCapture, getState, getStateInternal, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setGroup, setName, setOnlyIf, setOnlyIf, setProject, setProperty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestReport()
| Method Detail |
|---|
@OutputDirectory public File getDestinationDir()
public void setDestinationDir(File destinationDir)
@InputFiles @SkipWhenEmpty public FileCollection getTestResultDirs()
public void setTestResultDirs(Iterable<File> testResultDirs)
Test
task.
public void reportOn(Object... results)
This method accepts any parameter of the given types:
Test task instance. The results from the test task are included in the report. The test task is automatically added
as a dependency of this task.File instances as per Project.files(Object...). These must
point to the binary test results directory generated by a Test task instance.Iterable. The contents of the iterable are converted recursively.
results - The result objects.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||