Package dev.gradleplugins
Interface GradlePluginTestingStrategyFactory
-
public interface GradlePluginTestingStrategyFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompositeGradlePluginTestingStrategycomposite(GradlePluginTestingStrategy firstStrategy, GradlePluginTestingStrategy secondStrategy, GradlePluginTestingStrategy... otherStrategies)Returns a testing strategy composed of multiple distinct testing strategies.GradleVersionCoverageTestingStrategycoverageForGradleVersion(java.lang.String version)Returns a testing strategy which will cover the specified Gradle version.GradleVersionCoverageTestingStrategygetCoverageForLatestGlobalAvailableVersion()Returns a testing strategy which will cover the latest Gradle released version.org.gradle.api.provider.Provider<java.util.Set<GradleVersionCoverageTestingStrategy>>getCoverageForLatestGlobalAvailableVersionOfEachSupportedMajorVersions()Returns a testing strategy which will cover the latest Gradle released version of each major version above the minimum supported version.GradleVersionCoverageTestingStrategygetCoverageForLatestNightlyVersion()Returns a testing strategy which will cover the latest Gradle nightly version.GradleVersionCoverageTestingStrategygetCoverageForMinimumVersion()Returns a testing strategy which will cover the minimum Gradle version supported by the plugin.
-
-
-
Method Detail
-
getCoverageForMinimumVersion
GradleVersionCoverageTestingStrategy getCoverageForMinimumVersion()
Returns a testing strategy which will cover the minimum Gradle version supported by the plugin. This strategy relies on theGradlePluginDevelopmentCompatibilityExtension.getMinimumGradleVersion()- Returns:
- a
GradlePluginTestingStrategyinstance for the minimum Gradle version supported by the plugin, never null
-
getCoverageForLatestNightlyVersion
GradleVersionCoverageTestingStrategy getCoverageForLatestNightlyVersion()
Returns a testing strategy which will cover the latest Gradle nightly version. This strategy relies on https://services.gradle.org/versions/nightly data.- Returns:
- a
GradlePluginTestingStrategyinstance for the latest Gradle nightly version, never null
-
getCoverageForLatestGlobalAvailableVersionOfEachSupportedMajorVersions
org.gradle.api.provider.Provider<java.util.Set<GradleVersionCoverageTestingStrategy>> getCoverageForLatestGlobalAvailableVersionOfEachSupportedMajorVersions()
Returns a testing strategy which will cover the latest Gradle released version of each major version above the minimum supported version. This strategy implygetCoverageForLatestGlobalAvailableVersion(). This strategy may result in multipleGradleVersionCoverageTestingStrategy.- Returns:
- a set of
GradlePluginTestingStrategyinstance for the latest Gradle GA version of each major version above minimum supported version, never null
-
getCoverageForLatestGlobalAvailableVersion
GradleVersionCoverageTestingStrategy getCoverageForLatestGlobalAvailableVersion()
Returns a testing strategy which will cover the latest Gradle released version. This strategy relies on https://services.gradle.org/versions/current data.- Returns:
- a
GradlePluginTestingStrategyinstance for the latest Gradle GA version, never null
-
coverageForGradleVersion
GradleVersionCoverageTestingStrategy coverageForGradleVersion(java.lang.String version)
Returns a testing strategy which will cover the specified Gradle version.- Returns:
- a
GradlePluginTestingStrategyinstance for the specified Gradle version, never null
-
composite
CompositeGradlePluginTestingStrategy composite(GradlePluginTestingStrategy firstStrategy, GradlePluginTestingStrategy secondStrategy, GradlePluginTestingStrategy... otherStrategies)
Returns a testing strategy composed of multiple distinct testing strategies. A testing strategy is deemed distinct if it isn't equal to any other strategy as well as not the same type. For example, composing a testing strategy of multiple Gradle version coverage is illegal.- Parameters:
firstStrategy- the first strategy of the composition, must not be nullsecondStrategy- the second strategy of the composition, must not be nullotherStrategies- the other strategies of the composition, must not be null- Returns:
- a composite testing strategy, never null
-
-