Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for runWithFailure (0.21 sec)

  1. testing/integ-test/src/integTest/groovy/org/gradle/integtests/ProjectLoadingIntegrationTest.java

            testFile("build.gradle").write("// empty");
    
            ExecutionFailure result = inTestDirectory().withTasks("test").runWithFailure();
            result.assertThatDescription(startsWith("Multiple projects in this build have project directory"));
    
            result = usingProjectDir(getTestDirectory()).withTasks("test").runWithFailure();
            result.assertThatDescription(startsWith("Multiple projects in this build have project directory"));
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadSpiIntegrationTest.groovy

            when:
            failure = executer
                    .withTasks("compileJava")
                    .requireOwnGradleUserHomeDir()
                    .withToolchainDownloadEnabled()
                    .runWithFailure()
    
            then:
            failure.assertHasDescription("Could not determine the dependencies of task ':compileJava'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 10:53:57 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyErrorIntegrationTest.groovy

                    from('src') {
                        into project.repositories
                    }
                    into 'dest'
                }
    '''
    
            ExecutionFailure failure = inTestDirectory().withTasks('copy').runWithFailure()
            failure.assertHasCause("""Cannot convert the provided notation to a String: repository container.
    The following types/formats are supported:
      - String or CharSequence instances, for example "some/path".
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 29 10:48:19 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperSupportedBuildJvmIntegrationTest.groovy

            given:
            prepareWrapper()
            wrapperExecuter.withJavaHome(jdk.javaHome)
    
            expect:
            def failure = wrapperExecuter.withTasks("help").runWithFailure()
            failure.assertHasErrorOutput("Gradle ${GradleVersion.current().version} requires Java 1.8 or later to run. You are currently using Java ${jdk.javaVersion}.")
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. platforms/jvm/language-groovy/src/integTest/groovy/org/gradle/groovy/compile/IncrementalGroovyCompileIntegrationTest.groovy

            // Update interface, compile should fail
            file('src/main/groovy/IPerson.groovy').assertIsFile().copyFrom(file('NewIPerson.groovy'))
    
            ExecutionFailure failure = executer.withTasks("classes").runWithFailure();
            failure.assertHasDescription("Execution failed for task ':compileGroovy'.");
        }
    
        @Test
        void failsCompilationWhenConfigScriptIsUpdated() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 18:44:49 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. testing/integ-test/src/integTest/groovy/org/gradle/integtests/AntProjectIntegrationTest.groovy

    </project>
    """
            TestFile buildFile = testFile('build.gradle')
            buildFile << """
    ant.importBuild('build.xml')
    """
            ExecutionFailure failure = inTestDirectory().withTasks('target1').runWithFailure()
            failure.assertHasFileName("Build file '$buildFile'")
            failure.assertThatDescription(startsWith('A problem occurred evaluating root project'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/wrapper-main/src/crossVersionTest/groovy/org/gradle/integtests/wrapper/WrapperOldJavaCrossVersionIntegrationTest.groovy

            when:
            GradleExecuter executor = prepareWrapperExecuter(previous, current).withJavaHome(jdk.javaHome)
    
            then:
            def result = executor.usingExecutable('gradlew').withArgument('help').runWithFailure()
            result.hasErrorOutput("Gradle ${GradleVersion.current().version} requires Java 1.8 or later to run. You are currently using Java ${jdk.javaVersion}.")
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperHttpIntegrationTest.groovy

            prepareWrapper(getDefaultBaseUrl())
            server.expect(server.get("/$TEST_DISTRIBUTION_URL").broken())
    
            when:
            wrapperExecuter.withStackTraceChecksDisabled()
            def failure = wrapperExecuter.runWithFailure()
    
            then:
            failure.error.contains('Server returned HTTP response code: 500')
    
            when:
            server.expect(server.get("/$TEST_DISTRIBUTION_URL").sendFile(distribution.binDistribution))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadIntegrationTest.groovy

            failure = executer
                .withTasks("compileJava")
                .requireOwnGradleUserHomeDir()
                .withToolchainDetectionEnabled()
                .withToolchainDownloadEnabled()
                .runWithFailure()
    
            then:
            failure.assertHasDescription("Could not determine the dependencies of task ':compileJava'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 10:53:57 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/AbstractDelegatingGradleExecuter.java

        @Override
        protected ExecutionResult doRun() {
            return configureExecuter().run();
        }
    
        @Override
        protected ExecutionFailure doRunWithFailure() {
            return configureExecuter().runWithFailure();
        }
    
        @Override
        public void assertCanExecute() throws AssertionError {
            configureExecuter().assertCanExecute();
        }
    
        @Override
        public GradleHandle createGradleHandle() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top