|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectConventionTask
org.gradle.api.tasks.testing.Test
public class Test
A task for executin Junit 3.8.x and Junit 4 tests.
| Field Summary | |
|---|---|
protected ClasspathConverter |
classpathConverter
|
protected ExistingDirsFilter |
existingDirsFilter
|
| Constructor Summary | |
|---|---|
Test(Project project,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
Test |
exclude(java.lang.String... excludes)
Adds exclude patterns for the files in the test classes directory (e.g. |
protected void |
executeTests(Task task)
|
AntJunit |
getAntJunit()
Returns the AntJunit instance the test execution is delegated to. |
java.util.List |
getClasspath()
|
DependencyManager |
getDependencyManager()
Returns the dependency manager used by this task for resolving dependencies. |
java.util.List |
getExcludes()
Returns the exclude patterns for test execution. |
java.util.List |
getIncludes()
Returns the include patterns for test execution. |
JunitOptions |
getOptions()
Returns an JUnit option instance to read or modify. |
java.io.File |
getTestClassesDir()
Returns the root folder for the compiled test sources. |
java.io.File |
getTestReportDir()
Returns the root folder for the test reports. |
java.io.File |
getTestResultsDir()
Returns the root folder for the test results. |
java.util.List |
getUnmanagedClasspath()
Returns the unmanaged classpath. |
Test |
include(java.lang.String... includes)
Adds include patterns for the files in the test classes directory (e.g. |
boolean |
isStopAtFailuresOrErrors()
Returns whether this task should throw an exception in case of test failuer or error. |
void |
setAntJunit(AntJunit antJunit)
Sets the AntJunit instance the test execution is delegated to. |
void |
setDependencyManager(DependencyManager dependencyManager)
Sets the dependency manager used by this task for resolving dependencies. |
void |
setExcludes(java.util.List excludes)
Sets the exclude patterns for test execution. |
void |
setIncludes(java.util.List includes)
Sets the include patterns for test execution. |
void |
setOptions(JunitOptions options)
Sets a new JUnit options instance. |
void |
setStopAtFailuresOrErrors(boolean stopAtFailuresOrErrors)
Sets whether this task should throw an exception in case of test failuer or error. |
void |
setTestClassesDir(java.io.File testClassesDir)
Sets the root folder for the compiled test sources. |
void |
setTestReportDir(java.io.File testReportDir)
Sets the root folder for the test reports. |
void |
setTestResultsDir(java.io.File testResultsDir)
Sets the root folder for the test results. |
void |
setUnmanagedClasspath(java.util.List unmanagedClasspath)
Sets the unmanaged classpath. |
Test |
unmanagedClasspath(java.lang.Object... elements)
This methode is usually used only internally by Gradle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ExistingDirsFilter existingDirsFilter
protected ClasspathConverter classpathConverter
| Constructor Detail |
|---|
public Test(Project project,
java.lang.String name)
| Method Detail |
|---|
protected void executeTests(Task task)
public java.util.List getClasspath()
public Test include(java.lang.String... includes)
setIncludes(java.util.List)public Test exclude(java.lang.String... excludes)
(java.util.List)public Test unmanagedClasspath(java.lang.Object... elements)
elements - The elements to be added
public java.io.File getTestClassesDir()
public void setTestClassesDir(java.io.File testClassesDir)
testClassesDir - The root folderpublic java.io.File getTestResultsDir()
public void setTestResultsDir(java.io.File testResultsDir)
testResultsDir - The root folderpublic java.io.File getTestReportDir()
public void setTestReportDir(java.io.File testReportDir)
testReportDir - The root folderpublic JunitOptions getOptions()
public void setOptions(JunitOptions options)
options - The new instancepublic java.util.List getIncludes()
include(String[])public void setIncludes(java.util.List includes)
includes - The patterns listinclude(String[])public java.util.List getExcludes()
include(String[])public void setExcludes(java.util.List excludes)
excludes - The patterns listexclude(String[])public boolean isStopAtFailuresOrErrors()
public void setStopAtFailuresOrErrors(boolean stopAtFailuresOrErrors)
public java.util.List getUnmanagedClasspath()
unmanagedClasspath(Object[])public void setUnmanagedClasspath(java.util.List unmanagedClasspath)
unmanagedClasspath(Object[])public AntJunit getAntJunit()
public void setAntJunit(AntJunit antJunit)
antJunit - The new instancepublic DependencyManager getDependencyManager()
public void setDependencyManager(DependencyManager dependencyManager)
dependencyManager - The new dependency manager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||