Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for GradleRunner (0.2 sec)

  1. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/internal/GradleProvider.java

            @Override
            public void applyTo(GradleConnector gradleConnector) {
                gradleConnector.useInstallation(gradleHome);
            }
    
            @Override
            public void applyTo(GradleRunner gradleRunner) {
                gradleRunner.withGradleInstallation(gradleHome);
            }
        }
    
        private static final class UriGradleProvider extends GradleProvider {
            private final URI uri;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerMiscEndUserIntegrationTest.groovy

                }
            """
    
            groovyTestSourceFile("""
                import org.gradle.testkit.runner.GradleRunner
                import spock.lang.Specification
    
                class Test extends Specification {
                    def "create GradleRunner"() {
                        expect:
                        GradleRunner.create().withProjectDir(new File("foo")).build()
                    }
                }
            """)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/samples/build-organization/publishing-convention-plugins/groovy/convention-plugins/src/test/groovy/com/myorg/PluginTest.groovy

        def runTask(String task) {
            return GradleRunner.create()
                    .withProjectDir(testProjectDir)
                    .withArguments(task, '--stacktrace')
                    .withPluginClasspath()
                    .build()
        }
    
        def runTaskWithFailure(String task) {
            return GradleRunner.create()
                    .withProjectDir(testProjectDir)
                    .withArguments(task, '--stacktrace')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 947 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/samples/incubating/build-organization/publishing-convention-plugins/groovy/convention-plugins/src/test/groovy/com/myorg/PluginTest.groovy

        def runTask(String task) {
            return GradleRunner.create()
                    .withProjectDir(testProjectDir)
                    .withArguments(task, '--stacktrace')
                    .withPluginClasspath()
                    .build()
        }
    
        def runTaskWithFailure(String task) {
            return GradleRunner.create()
                    .withProjectDir(testProjectDir)
                    .withArguments(task, '--stacktrace')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 947 bytes
    - Viewed (0)
  5. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerPluginClasspathInjectionEndUserIntegrationTest.groovy

        }
    
        def "can test plugin and custom task as external files by providing them as classpath through GradleRunner API"() {
            when:
            file("src/test/groovy/Test.groovy") << """
                import org.gradle.testkit.runner.GradleRunner
                import static org.gradle.testkit.runner.TaskOutcome.*
                import spock.lang.Specification
                import spock.lang.TempDir
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/plugin/java/junit/PluginFunctionalTest.java.template

            writeString(getSettingsFile(), "");
            writeString(getBuildFile(),
                "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();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/BaseGradleImplDepsTestCodeIntegrationTest.groovy

            package org.acme;
            import org.gradle.testkit.runner.GradleRunner;
            import org.junit.Test;
            import static org.junit.Assert.assertTrue;
    
            public abstract class BaseTestPluginTest {
                GradleRunner runner() {
                    return GradleRunner.create();
                }
    
                @Test
                void commonTest() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/GradleVsMavenBuildExperimentRunner.java

        private final GradleBuildExperimentRunner gradleRunner;
        private final MavenBuildExperimentRunner mavenRunner;
    
        public GradleVsMavenBuildExperimentRunner(GradleProfilerReporter gradleProfilerReporter, OutputDirSelector outputDirSelector) {
            super(gradleProfilerReporter, outputDirSelector);
            this.gradleRunner = new GradleBuildExperimentRunner(gradleProfilerReporter, outputDirSelector);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AnnotationProcessingSmokeTest.groovy

                      System.out.printf("%d: %s\\n", entry.getKey(), entry.getValue());
                    }
                  }
                }
            """
            GradleRunner gradleRunner = runner("compileJava")
    
            expect:
            gradleRunner.build()
    
            where:
            fork << [true, false]
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/samples/build-organization/multi-project-with-convention-plugins/kotlin/buildSrc/src/test/kotlin/com/example/PluginTest.kt

        }
    
        fun runTask(task: String): BuildResult {
            return GradleRunner.create()
                    .withProjectDir(testProjectDir.root)
                    .withArguments(task, "--stacktrace")
                    .withPluginClasspath()
                    .build()
        }
    
        fun runTaskWithFailure(task: String): BuildResult {
            return GradleRunner.create()
                    .withProjectDir(testProjectDir.root)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top