Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for withPluginClasspath (0.42 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
Back to top