Package dev.gradleplugins
Interface GradlePluginDevelopmentTestSuite
-
- All Superinterfaces:
org.gradle.api.plugins.ExtensionAware,org.gradle.api.Named
public interface GradlePluginDevelopmentTestSuite extends org.gradle.api.Named, org.gradle.api.plugins.ExtensionAware
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddependencies(org.gradle.api.Action<? super GradlePluginDevelopmentTestSuiteDependencies> action)voidfinalizeComponent()Finalize this component.GradlePluginDevelopmentTestSuiteDependenciesgetDependencies()java.lang.StringgetDisplayName()Returns a human-readable name for this test suite.org.gradle.api.tasks.TaskProvider<org.gradle.plugin.devel.tasks.PluginUnderTestMetadata>getPluginUnderTestMetadataTask()Returns plugin under test metadata generator task for this test suite.org.gradle.api.provider.Property<org.gradle.api.tasks.SourceSet>getSourceSet()Configure the test suite source set.GradlePluginTestingStrategyFactorygetStrategies()Returns a factory for creating the various testing strategies.org.gradle.api.provider.Property<org.gradle.api.tasks.SourceSet>getTestedSourceSet()Configure the Gradle plugin source set to test by this test suite.org.gradle.api.provider.SetProperty<GradlePluginTestingStrategy>getTestingStrategies()Configure the testing strategies for this test suite.TaskView<org.gradle.api.tasks.testing.Test>getTestTasks()
-
-
-
Method Detail
-
getTestingStrategies
org.gradle.api.provider.SetProperty<GradlePluginTestingStrategy> getTestingStrategies()
Configure the testing strategies for this test suite.- Returns:
- a property for configuring the
GradlePluginTestingStrategy
-
getSourceSet
org.gradle.api.provider.Property<org.gradle.api.tasks.SourceSet> getSourceSet()
Configure the test suite source set.- Returns:
- a property for configuring the
SourceSet, never null
-
getTestedSourceSet
org.gradle.api.provider.Property<org.gradle.api.tasks.SourceSet> getTestedSourceSet()
Configure the Gradle plugin source set to test by this test suite.- Returns:
- a property for configuring the
SourceSet
-
getStrategies
GradlePluginTestingStrategyFactory getStrategies()
Returns a factory for creating the various testing strategies.- Returns:
- a
GradlePluginTestingStrategyFactoryinstance, never null.
-
getPluginUnderTestMetadataTask
org.gradle.api.tasks.TaskProvider<org.gradle.plugin.devel.tasks.PluginUnderTestMetadata> getPluginUnderTestMetadataTask()
Returns plugin under test metadata generator task for this test suite. UseGradlePluginDevelopmentTestSuiteDependencies.pluginUnderTestMetadata(Object)to add plugin classpath.- Returns:
- generator task for plugin-under-test-metadata.properties file, never null
-
getDisplayName
java.lang.String getDisplayName()
Returns a human-readable name for this test suite.- Returns:
- a human-readable name, never null
-
getTestTasks
TaskView<org.gradle.api.tasks.testing.Test> getTestTasks()
-
getDependencies
GradlePluginDevelopmentTestSuiteDependencies getDependencies()
-
dependencies
void dependencies(org.gradle.api.Action<? super GradlePluginDevelopmentTestSuiteDependencies> action)
-
finalizeComponent
void finalizeComponent()
Finalize this component. Upon finalizing, the test suite will calculate its final testing strategies and create all of its test tasks. Once the component is finalized, users cannot change any of component properties.
-
-