- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for withPluginClasspath (0.27 sec)
-
platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerPluginClasspathInjectionIntegrationTest.groovy
when: def result = runner(":child:echo1", "-S").withPluginClasspath(plugin.implClasspath).build() then: result.output.contains("class name: $plugin.taskClassName") when: result = runner("echo1", "-S").withPluginClasspath(plugin.implClasspath).buildAndFail() then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jan 15 03:45:31 UTC 2024 - 13K bytes - Viewed (0) -
platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerConventionalPluginClasspathInjectionIntegrationTest.groovy
given: def explicitClasspath = [file('does/not/exist')] when: def result = pluginUnderTest.exposeMetadata { runner('helloWorld') .withPluginClasspath() .withPluginClasspath(explicitClasspath) .buildAndFail() } then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jan 15 03:45:31 UTC 2024 - 4.2K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/TestKitIntegrationTest.kt
class TestKitIntegrationTest : AbstractKotlinIntegrationTest() { @Test @Requires(IntegTestPreconditions.NotEmbeddedExecutor::class) @LeaksFileHandles("Kotlin Compiler Daemon working directory") fun `withPluginClasspath works`() { withDefaultSettings() withBuildScript( """ plugins { `java-gradle-plugin` `kotlin-dsl` }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 14 10:30:09 UTC 2024 - 7.3K bytes - Viewed (0) -
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) -
platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/internal/DefaultGradleRunner.java
return classpath.getAsFiles(); } @Override public GradleRunner withPluginClasspath() { this.classpath = DefaultClassPath.of(PluginUnderTestMetadataReading.readImplementationClasspath()); return this; } @Override public GradleRunner withPluginClasspath(Iterable<? extends File> classpath) { List<File> f = new ArrayList<>();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 20 10:14:55 UTC 2024 - 15.5K bytes - Viewed (0)