Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for runWithFailure (0.48 sec)

  1. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecDebugIntegrationTest.groovy

                debugOptions {
                    enabled = true
                    server = false
                }
            """
    
            expect:
            def failure = executer.withTasks(taskName).withStackTraceChecksDisabled().runWithFailure()
            failure.error.contains('ERROR: transport error 202: connect failed:') || failure.error.contains('ERROR: transport error 202: handshake failed')
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/AbstractKotlinIntegrationTest.kt

            buildAndFail(*arguments).error
    
        protected
        fun buildAndFail(vararg arguments: String): ExecutionFailure =
            gradleExecuterFor(arguments).runWithFailure()
    
        protected
        fun build(rootDir: File, vararg arguments: String): ExecutionResult =
            gradleExecuterFor(arguments, rootDir).run()
    
        protected
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 16:44:39 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestFailureIntegrationTest.groovy

                dependencies {
                    ${testFrameworkDependencies}
                }
                test.${configureTestFramework}
            """.stripIndent()
    
            when:
            executer.withTasks('build').runWithFailure().assertTestsFailed()
    
            then:
            DefaultTestExecutionResult result = new DefaultTestExecutionResult(testDirectory)
            result.assertTestClassesExecuted(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 18K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/ProcessCrashHandlingIntegrationTest.groovy

            given:
            file("build.gradle") << "System.exit(0)"
    
            when:
            executer.withStackTraceChecksDisabled() // daemon log may contain stack traces
            def failure = executer.runWithFailure()
    
            then:
            failure.assertHasErrorOutput("----- Last  20 lines from daemon log file")
            failure.assertHasErrorOutput(DaemonMessages.DAEMON_VM_SHUTTING_DOWN)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGXmlResultAndHtmlReportIntegrationTest.groovy

                dependencies { testImplementation 'org.testng:testng:6.3.1' }
    
                test {
                    $testConfiguration
                }
                """
            //when
            executer.withTasks('test').runWithFailure().assertTestsFailed()
        }
    
        def verifyTestResultWith(TestExecutionResult executionResult, TestResultOutputAssociation outputAssociation) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 25 21:27:42 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  6. platforms/ide/ide-plugins/src/integTest/groovy/org/gradle/plugins/ide/idea/IdeaIntegrationTest.groovy

    apply plugin: "java"
    apply plugin: "idea"
    '''
            file('settings.gradle') << 'rootProject.name = "root"'
    
            //when
            def failure = executer.withTasks('idea').runWithFailure()
    
            //then
            failure.output.contains("Perhaps this file was tinkered with?")
        }
    
        @Test
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 01:27:55 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileToolchainIntegrationTest.groovy

                    }
                }
            """
    
            when:
            failure = executer
                .withToolchainDetectionEnabled()
                .withTasks("compileJava")
                .runWithFailure()
    
            then:
            failure.assertHasCause("No locally installed toolchains match and toolchain auto-provisioning is not enabled.")
                .assertHasResolutions(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  8. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskExecutionIntegrationTest.groovy

                executer.withArguments("-x", "b").run().assertTasksExecuted(":a", ":c", ":d", ":sub:c", ":sub:d")
                // Unknown task
                executer.withTasks("d").withArguments("-x", "unknown").runWithFailure().assertThatDescription(startsWith("Task 'unknown' not found in root project 'root' and its subprojects."))
            }
        }
    
        def "unqualified exclude task name does not exclude tasks from parent projects"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/GradleExecuter.java

        /**
         * Executes the requested build, asserting that the build fails. Resets the configuration of this executer.
         *
         * @return The result.
         */
        ExecutionFailure runWithFailure();
    
        /**
         * Starts executing the build asynchronously.
         *
         * @return the handle, never null.
         */
        GradleHandle start();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

            fails(*tasks)
        }
    
        protected ExecutionFailure fails(String... tasks) {
            resetProblemApiCheck()
    
            failure = executer.withTasks(*tasks).runWithFailure()
    
            if (enableProblemsApiCheck && getReceivedProblems().isEmpty()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 32.9K bytes
    - Viewed (0)
Back to top