Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 59 for GradleRunner (0.53 sec)

  1. platforms/documentation/docs/src/snippets/testKit/automaticClasspathInjectionQuickstart/kotlin/src/test/groovy/org/gradle/sample/BuildLogicFunctionalTest.groovy

    package org.gradle.sample
    
    import org.gradle.testkit.runner.GradleRunner
    import spock.lang.TempDir
    import spock.lang.Specification
    
    import static org.gradle.testkit.runner.TaskOutcome.*
    
    class BuildLogicFunctionalTest extends Specification {
    
        @TempDir File testProjectDir
        File settingsFile
        File buildFile
    
        def setup() {
            settingsFile = new File(testProjectDir, 'settings.gradle')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/testKit/gradleVersion/groovy/src/test/groovy/org/gradle/sample/BuildLogicFunctionalTest.groovy

    package org.gradle.sample
    
    // tag::functional-test-spock-gradle-version[]
    import org.gradle.testkit.runner.GradleRunner
    import static org.gradle.testkit.runner.TaskOutcome.*
    import spock.lang.TempDir
    import spock.lang.Specification
    
    class BuildLogicFunctionalTest extends Specification {
        @TempDir File testProjectDir
        File settingsFile
        File buildFile
    
        def setup() {
            settingsFile = new File(testProjectDir, 'settings.gradle')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/BuildResult.java

     */
    
    package org.gradle.testkit.runner;
    
    import javax.annotation.Nullable;
    import java.util.List;
    
    /**
     * The result of executing a build, via the {@link GradleRunner}.
     *
     * @since 2.6
     * @see GradleRunner#build()
     * @see GradleRunner#buildAndFail()
     */
    public interface BuildResult {
    
        /**
         * The textual output produced during the build.
         * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/InvalidRunnerConfigurationException.java

    import org.gradle.tooling.UnsupportedVersionException;
    
    /**
     * Thrown when a build cannot be executed due to the runner being in an invalid state.
     *
     * @since 2.6
     * @see GradleRunner#build()
     * @see GradleRunner#buildAndFail()
     */
    public class InvalidRunnerConfigurationException extends IllegalStateException {
        public InvalidRunnerConfigurationException(String s) {
            super(s);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredBuildInputsTestKitInjectedJavaPluginIntegrationTest.groovy

                def runnerResult = createRunner().buildAndFail()
                return OutputScrapingExecutionFailure.from(runnerResult.output, "")
            }
    
            private GradleRunner createRunner() {
                def runner = GradleRunner.create()
                if (!GradleContextualExecuter.embedded) {
                    runner.withGradleInstallation(buildContext.gradleHomeDir)
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerConsoleInputEndUserIntegrationTest.groovy

                        }
                    }
    
                    void flush() { }
    
                    void close() { }
                }
    
                when:
                def result = GradleRunner.create()
                    .withProjectDir(testProjectDir)
                    .withArguments('$DUMMY_TASK_NAME')
                    .withDebug($debug)
                    .withStandardInput(stdin)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/internal/feature/BuildResultOutputFeatureCheck.java

            } else {
                if (targetGradleVersion.compareTo(MINIMUM_SUPPORTED_GRADLE_VERSION) < 0) {
                    DeprecationLogger.deprecate("Capturing build output in debug mode with the GradleRunner for the version of Gradle you are using (%s) is deprecated with TestKit. " +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 14:27:21 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerCrossGroovyVersionIntegrationTest.groovy

            given:
            def targetingGradle7Test = """
    import spock.lang.Specification
    import org.junit.Rule
    import org.junit.rules.TemporaryFolder
    import org.gradle.testkit.runner.GradleRunner
    import org.gradle.testkit.runner.TaskOutcome
    import org.gradle.util.VersionNumber
    
    class BuildLogicFunctionalTest extends Specification {
    
        @Rule public TemporaryFolder testProjectDir = new TemporaryFolder();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  9. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerConventionalPluginClasspathInjectionEndUserIntegrationTest.groovy

                        }
                    }
                }
            """
    
            plugin.writeSourceFiles()
    
            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
    
                class Test extends Specification {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy

                parentFile.mkdirs()
                createNewFile()
                text = "Generated javadoc HTML goes here"
            }
        }
    
        private GradleRunner run(String... args) {
            return GradleRunner.create()
                .withProjectDir(projectDir)
                .withPluginClasspath()
                .withArguments(args)
                .forwardOutput()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 28 22:01:54 UTC 2022
    - 7.8K bytes
    - Viewed (0)
Back to top