- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for withPluginClasspath (0.26 sec)
-
platforms/documentation/docs/src/docs/userguide/authoring-builds/other/test_kit.adoc
Furthermore, it automatically generates the classpath for the code under test and injects it via link:{javadocPath}/org/gradle/testkit/runner/GradleRunner.html#withPluginClasspath--[GradleRunner.withPluginClasspath()] for any `GradleRunner` instance created by the user. It's important to note that the mechanism currently _only_ works if the plugin under test is applied using the <<plugins.adoc#sec:plugins_block,plugins DSL>>.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 05:36:09 UTC 2024 - 15.8K bytes - Viewed (0) -
testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/SmokeTestGradleRunner.groovy
} @Override SmokeTestGradleRunner withPluginClasspath() throws InvalidPluginMetadataException { delegate.withPluginClasspath() return this } @Override SmokeTestGradleRunner withPluginClasspath(Iterable<? extends File> classpath) { delegate.withPluginClasspath(classpath) return this } @Override boolean isDebug() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 15K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTestKitIntegrationTest.groovy
} runner.withArguments("--configuration-cache") runner.forwardOutput() runner.withProjectDir(testDirectory) runner.withPluginClasspath([new File("some-dir")]) def result = runner.buildAndFail() def output = result.output then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 9.9K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredBuildInputsTestKitInjectedJavaPluginIntegrationTest.groovy
runner.withProjectDir(workingDir) def args = allArgs args.remove("--no-daemon") runner.withArguments(args) runner.withPluginClasspath(pluginClasspath) runner.withEnvironment(environmentVars) runner.forwardOutput() runner } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 4.8K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest.kt
) } protected fun run(vararg args: String) = GradleRunner.create() .withProjectDir(projectDir) .withTestKitDir(projectDir.resolve("test-kit")) .withPluginClasspath() .forwardOutput() .withArguments(*args) protected fun assertChangesProperlyOrdered() { val result = run(":verifyAcceptedApiChangesOrdering").build()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 6K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt
val inputBuildDir = setupRunBinaryCompatibility(v1, v2) val runner = GradleRunner.create() .withProjectDir(inputBuildDir) .withPluginClasspath() .withArguments(":binary-compatibility:checkBinaryCompatibility", "-s") val (buildResult, failure) = try { runner.build()!! to null } catch (ex: UnexpectedBuildFailure) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 16.4K bytes - Viewed (0) -
testing/public-api-tests/src/integTest/groovy/org/gradle/api/PublicApiIntegrationTest.groovy
BuildResult result = GradleRunner.create() .withProjectDir(testProjectDir) .withArguments("customTask") .withPluginClasspath() .build(); assertTrue(result.getOutput().contains("Hello from plugin")); assertTrue(result.getOutput().contains("Hello from custom task"));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 08:43:08 UTC 2024 - 8.8K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/NativeServicesIntegrationTest.groovy
\""" when: def result = GradleRunner.create() .forwardOutput() .withPluginClasspath() .withArguments("help") .withProjectDir(projectDir) .build() then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 22 05:18:22 UTC 2024 - 10.9K bytes - Viewed (0)