Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 866 for broken2 (0.12 sec)

  1. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/DeprecationHandlingIntegrationTest.groovy

                executer.expectDeprecationWarnings(warningsCount)
            }
            executer.withWarningMode(warnings)
            warnings == WarningMode.Fail ? fails('thisIsADeprecatedTask', 'broken') : succeeds('thisIsADeprecatedTask', 'broken')
    
            then:
            output.contains('build.gradle:2)') == warningsCount > 0
            output.contains('build.gradle:4)') == warningsCount > 0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 19 16:16:32 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/AbstractCppIntegrationTest.groovy

            and:
            file("src/main/cpp/broken.cpp") << "broken!"
    
            expect:
            fails "assemble"
            failure.assertHasDescription("Execution failed for task '$developmentBinaryCompileTask'.")
            failure.assertHasCause("A build operation failed.")
            failure.assertThatCause(Matchers.containsText("C++ compiler failed while compiling broken.cpp"))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/buildlifecycle/taskExecutionEvents/tests-kotlin/taskExecutionEvents.kotlin.sample.conf

    # tag::cli[]
    # gradle --quiet broken
    # end::cli[]
    executable: gradle
    args: broken
    flags: --quiet
    expect-failure: true
    expected-output-file: taskExecutionEvents.kotlin.out
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 201 bytes
    - Viewed (0)
  4. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/xcode/XcodeErrorIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "fails to build when project code is broken"() {
            useXcodebuildTool()
    
            given:
            buildFile << """
                apply plugin: 'swift-application'
             """
    
            and:
            file("src/main/swift/broken.swift") << "broken!"
    
            and:
            succeeds("xcode")
    
            expect:
            def failure = xcodebuild
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/IvyJvmLibraryArtifactResolutionIntegrationTest.groovy

    Searched in the following locations:
        ${javadocArtifact.uri}""")
        }
    
        def "resolves and recovers from broken artifacts"() {
            given:
            module.artifact(type: "source", classifier: "broken-sources", ext: "jar", conf: "sources")
            module.publish()
    
            fixture.expectSourceArtifact("my-sources")
                    .expectSourceArtifactFailure()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  6. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskErrorExecutionIntegrationTest.groovy

                    throw new ArithmeticException('broken')
                }
            """
            expect:
            fails "do-stuff"
    
            failure.assertHasFileName(String.format("Build file '%s'", buildFile))
            failure.assertHasLineNumber(3)
            failure.assertHasDescription("Execution failed for task ':do-stuff'.")
            failure.assertHasCause("broken")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/AttributeValuesIntegrationTest.groovy

        configurations {
            broken
        }
        configurations.broken.attributes.attribute(attr, $value)
    """
    
            when:
            fails()
    
            then:
            failure.assertHasCause("Could not isolate value ")
            failure.assertHasCause("Could not serialize value of type ")
    
            where:
            type      | value
            "Thing"   | "new Thing(name: 'broken')"
            "Project" | "project"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/PluginApplicationErrorIntegrationTest.groovy

            pluginBuilder.publishTo(executer, file('external.jar'))
    
            buildFile << '''
    buildscript {
        dependencies {
            classpath files('external.jar')
        }
    }
    apply plugin: 'broken'
    '''
    
            when:
            fails()
    
            then:
            failure.assertHasCause("Failed to apply plugin 'broken'")
            failure.assertHasCause("throwing plugin")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. testing/integ-test/src/integTest/groovy/org/gradle/integtests/BuildAggregationIntegrationTest.groovy

            failure.assertThatDescription(CoreMatchers.startsWith("A problem occurred evaluating project ':other'"))
            failure.assertHasCause('broken')
        }
    
        def reportsBuildSrcFailure() {
            when:
            file('buildSrc/src/main/java/Broken.java') << 'broken!'
    
            then:
            fails()
    
            and:
            failure.assertHasDescription("Execution failed for task ':buildSrc:compileJava'.")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/buildlifecycle/taskExecutionEvents/groovy/build.gradle

    tasks.register('ok')
    
    tasks.register('broken') {
        dependsOn ok
        doLast {
            throw new RuntimeException('broken')
        }
    }
    
    gradle.taskGraph.beforeTask { Task task ->
        println "executing $task ..."
    }
    
    gradle.taskGraph.afterTask { Task task, TaskState state ->
        if (state.failure) {
            println "FAILED"
        }
        else {
            println "done"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 370 bytes
    - Viewed (0)
Back to top