Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 59 of 59 for GradleRunner (0.15 sec)

  1. testing/public-api-tests/src/integTest/groovy/org/gradle/api/PublicApiIntegrationTest.groovy

                }
            """
        }
    
        private static String pluginTestJava() {
            """
                package org.example;
    
                import org.gradle.testkit.runner.GradleRunner;
                import org.gradle.testkit.runner.BuildResult;
                import org.junit.jupiter.api.Test;
                import org.junit.jupiter.api.io.TempDir;
    
                import java.io.File;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 08:43:08 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. platforms/extensibility/test-kit/src/test/groovy/org/gradle/testkit/runner/internal/FeatureCheckBuildResultTest.groovy

        public static final String BUILD_RESULT_OUTPUT_UNSUPPORTED_FEATURE_MSG = "The version of Gradle you are using ($UNSUPPORTED_GRADLE_VERSION.version) does not capture build output in debug mode with the GradleRunner. Support for this is available in Gradle $TestKitFeature.CAPTURE_BUILD_RESULT_OUTPUT_IN_DEBUG.since.version and all later versions."
    
        String output = 'output'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerGradleVersionIntegrationTest.groovy

        }
    
        DaemonsFixture getDaemonsFixture() {
            testKitDaemons(GradleVersion.version(lowestMajorGradleVersion))
        }
    
        def "execute build with different distribution types #type"(String version, Action<GradleRunner> configurer) {
            given:
            requireIsolatedTestKitDir = true
            buildFile << """
                task writeVersion {
                    doLast {
                        file("version.txt").with {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/GradleImplDepsConcurrencyIntegrationTest.groovy

                        def classLoader = getClass().classLoader
                        classLoader.loadClass('${Plugin.class.getName()}')
                        classLoader.loadClass('org.gradle.testkit.runner.GradleRunner')
                    }
                }
            """
        }
    
        private void setupProjects(int projectCount, Closure c) {
            (1..projectCount).each {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. .teamcity/src/main/kotlin/configurations/Gradleception.kt

                }
            }
        )
    })
    
    fun BuildSteps.localGradle(init: GradleBuildStep.() -> Unit): GradleBuildStep =
        customGradle(init) {
            param("ui.gradleRunner.gradle.wrapper.useWrapper", "false")
            buildFile = ""
            skipConditionally()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 09:57:17 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerUnsupportedFeatureFailureIntegrationTest.groovy

            result.output
    
            then:
            def e = thrown UnsupportedFeatureException
            e.message == "The version of Gradle you are using ($maxUnsupportedVersion) does not capture build output in debug mode with the GradleRunner. Support for this is available in Gradle $minSupportedVersion and all later versions."
        }
    
        @Requires(UnitTestPreconditions.Jdk8OrEarlier) // tests against old Gradle version that can only work with Java versions up tp 8
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/DependencyHandlerApiResolveIntegrationTest.groovy

            return props.kotlin
        }
    
        private static String javaClassReferencingTestKit() {
            """package com.gradle.example;
    
               import org.gradle.testkit.runner.GradleRunner;
    
               public class MyTest {}
            """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 06:59:30 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerMechanicalFailureIntegrationTest.groovy

            and:
            def output = OutputScrapingExecutionResult.from(t.message, "")
            def taskHeader = gradleVersion >= GradleVersion.version("4.0") ? "\n> Task :helloWorld" : ":helloWorld"
            // GradleRunner disables FS watching on Windows by passing a command line argument, so the arguments are different for Windows and other operating systems
            // See GradleRunner's Javadoc.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/core-plugins/java_gradle_plugin.adoc

    It automatically adds the `gradleTestKit()` dependency to the `testImplementation` configuration and generates a plugin classpath manifest file consumed by a `GradleRunner` instance if found.
    Please refer to <<test_kit.adoc#sub:test-kit-automatic-classpath-injection,Automatic classpath injection with the Plugin Development Plugin>> for more on its usage, configuration options and samples.
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top