Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 46 for failureDescriptionContains (0.39 sec)

  1. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/TaskFromPluginValidationIntegrationTest.groovy

                }
            """
    
            buildFile """plugins {
                id 'test.gradle.demo.plugin'
            }"""
    
            when:
            fails ':myTask'
    
            then:
            failureDescriptionContains(dummyValidationProblem {
                inPlugin('test.gradle.demo.plugin')
                type('SomeTask').property('input')
            }.trim())
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/typesafe/TypeSafeProjectAccessorsIntegrationTest.groovy

            given:
            createDirs("1library")
            settingsFile << """
                include '1library'
            """
    
            when:
            fails 'help'
    
            then:
            failureDescriptionContains "Cannot generate project dependency accessors because project '1library' doesn't follow the naming convention: [a-zA-Z]([A-Za-z0-9\\-_])*"
        }
    
        def "fails if two subprojects have the same java name"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 20:11:20 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskErrorExecutionIntegrationTest.groovy

            '''
            expect:
            fails "custom"
    
            failureDescriptionContains("Some problems were found with the configuration of task ':custom' (type 'CustomTask').")
            failureDescriptionContains(missingValueMessage { type('CustomTask').property('srcFile') })
            failureDescriptionContains(missingValueMessage { type('CustomTask').property('destFile') })
    
            verifyAll(receivedProblem(0)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. platforms/core-runtime/wrapper-shared/src/integTest/groovy/org/gradle/integtests/TarSlipIntegrationTest.groovy

                    from(tarTree('evil.tar.bz'))
                    into('.')
                }
            '''
    
            when:
            fails 'copyEvilTar'
    
            then:
            failureDescriptionContains "Execution failed for task ':copyEvilTar'"
            failure.assertHasErrorOutput "'../../tmp/evil.sh' is not a safe archive entry or path name"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:12:34 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/SmokeContinuousIntegrationTest.groovy

                    outputs.files "build/marker"
                    doLast {}
                }
            """
    
            then:
            fails("a")
            failureDescriptionContains("Could not determine the dependencies of task ':a'.")
        }
    
        def "failure to determine inputs has a reasonable message when an earlier task succeeds"() {
            when:
            buildScript """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 18.5K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/SnapshotTaskInputsOperationIntegrationTest.groovy

            failureDescriptionContains(implementationUnknown {
                implementationOfTask(':customTask')
                unknownClassloader('CustomTask_Decorated')
            })
            failureDescriptionContains(implementationUnknown {
                additionalTaskAction(':customTask')
                unknownClassloader('CustomTask_Decorated')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. platforms/software/resources-sftp/src/integTest/groovy/org/gradle/integtests/resolve/resource/sftp/ivy/IvySftpRepoErrorsIntegrationTest.groovy

        }
    
        private void assertTaskFailureDescription(String taskSelector) {
            if (GradleContextualExecuter.configCache) {
                failureDescriptionContains("Configuration cache state could not be cached:")
                failureDescriptionContains(taskSelector)
            } else {
                def description = "Execution failed for task '${taskSelector}'."
                failure.assertHasDescription(description)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 11:07:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/PluginUnderTestMetadataIntegrationTest.groovy

            given:
            buildFile << """
                task $TASK_NAME(type: ${PluginUnderTestMetadata.class.getName()})
            """
    
            when:
            fails TASK_NAME
    
            then:
            failureDescriptionContains(missingValueMessage { type(PluginUnderTestMetadata.name).property('outputDirectory').includeLink() })
        }
    
        def "implementation-classpath entry in metadata is empty if there is no classpath"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingWithPluginManagementSpec.groovy

              }
            """
            args('-I', initScript.absolutePath)
    
            when:
            fails('help')
    
            then:
            failureDescriptionContains("Cannot change the plugin resolution strategy after projects have been loaded.")
        }
    
        def "fails build for unresolvable custom artifact"() {
            given:
            buildScript helloWorldPlugin('0.2')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/NameValidationIntegrationTest.groovy

        }
    
        void assertFailureDescriptionOrCauseContains(String... messages) {
            try {
                messages.each { failureDescriptionContains(it) }
            } catch (AssertionError ignore) {
                messages.each { failureCauseContains(it) }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 5.3K bytes
    - Viewed (0)
Back to top