Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 44 for withPluginClasspath (0.73 sec)

  1. platforms/documentation/docs/src/snippets/testKit/automaticClasspathInjectionCustomTestSourceSet/groovy/src/functionalTest/groovy/org/gradle/sample/BuildLogicFunctionalTest.groovy

                }
            """
    
            when:
            def result = GradleRunner.create()
                .withProjectDir(testProjectDir)
                .withArguments('helloWorld')
                .withPluginClasspath()
                .build()
    
            then:
            result.output.contains('Hello world!')
            result.task(":helloWorld").outcome == SUCCESS
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1K bytes
    - Viewed (0)
  2. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/InvalidPluginMetadataException.java

     * limitations under the License.
     */
    
    package org.gradle.testkit.runner;
    
    /**
     * Thrown when the plugin under test metadata cannot be read.
     *
     * @since 2.13
     * @see GradleRunner#withPluginClasspath()
     */
    public class InvalidPluginMetadataException extends IllegalStateException {
    
        public InvalidPluginMetadataException(String s) {
            super(s);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 941 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/testKit/automaticClasspathInjectionQuickstart/groovy/src/test/groovy/org/gradle/sample/BuildLogicFunctionalTest.groovy

                }
            """
    
            when:
            def result = GradleRunner.create()
                .withProjectDir(testProjectDir)
                .withArguments('helloWorld')
                .withPluginClasspath()
                .build()
    
            then:
            result.output.contains('Hello world!')
            result.task(":helloWorld").outcome == SUCCESS
        }
        // end::functional-test-classpath-setup-automatic[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/plugin/java/junit/PluginFunctionalTest.java.template

                "plugins {" +
                "  id('${pluginId.value}')" +
                "}");
    
            // Run the build
            GradleRunner runner = GradleRunner.create();
            runner.forwardOutput();
            runner.withPluginClasspath();
            runner.withArguments("greeting");
            runner.withProjectDir(projectDir);
            BuildResult result = runner.build();
    
            // Verify the result
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/plugin/kotlin/kotlintest/PluginFunctionalTest.kt.template

                    id('${pluginId.value}')
                }
            """.trimIndent())
    
            // Run the build
            val runner = GradleRunner.create()
            runner.forwardOutput()
            runner.withPluginClasspath()
            runner.withArguments("greeting")
            runner.withProjectDir(projectDir)
            val result = runner.build()
    
            // Verify the result
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/configurationCache/testKit/groovy/src/test/groovy/org/example/BuildLogicFunctionalTest.groovy

        }
        // end::functional-test-configuration-cache[]
    
        def runner() {
            return GradleRunner.create()
                .withProjectDir(testProjectDir)
                .withPluginClasspath()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. 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)
  8. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/GradleRunner.java

         *
         * @return this
         * @see #withPluginClasspath(Iterable)
         * @see #getPluginClasspath()
         * @since 2.13
         */
        public abstract GradleRunner withPluginClasspath() throws InvalidPluginMetadataException;
    
        /**
         * Sets the injected plugin classpath for the build.
         * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  9. 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)
  10. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerPluginClasspathInjectionEndUserIntegrationTest.groovy

                        when:
                        def result = GradleRunner.create()
                            .withProjectDir(testProjectDir)
                            .withArguments('helloWorld')
                            .withPluginClasspath(pluginClasspath)
                            .withDebug($debug)
                            .build()
    
                        then:
                        noExceptionThrown()
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top