Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for failureHasCause (0.17 sec)

  1. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorErrorHandlingIntegrationTest.groovy

                }
            """.stripIndent()
    
            when:
            fails("runInWorker")
    
            then:
            failureHasCause("A failure occurred while executing ${workAction.packageName}.${workAction.name}")
            failureHasCause("Could not isolate value ")
            failureHasCause("Could not serialize value of type FooWithUnserializableBar")
    
            and:
            executedAndNotSkipped(":runAgainInWorker")
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-09-22 09:36
    - 14.1K bytes
    - Viewed (0)
  2. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorParallelIntegrationTest.groovy

            and:
            failureHasCause("Multiple task action failures occurred")
    
            and:
            failureHasCause("A failure occurred while executing ${failingWorkAction.name}")
            failureHasCause("Failure from workItem1")
    
            and:
            failureHasCause("A failure occurred while executing ${failingWorkAction.name}")
            failureHasCause("Failure from workItem2")
    
            where:
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-10-24 06:54
    - 31.7K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/IvyDynamicRevisionResolveIntegrationTest.groovy

            when:
            repositoryInteractions {
                'org.test:projectA' {
                    expectVersionListing()
                }
            }
            runAndFail 'checkDeps'
    
            then:
            failureHasCause 'Could not find any matches for org.test:projectA:latest.integration as no versions of org.test:projectA are available.'
    
            when:
            resetExpectations()
            repository {
                'org.test:projectA' {
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-10-10 21:10
    - 18.9K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/ComponentSelectionRulesErrorHandlingIntegTest.groovy

            failure.assertHasFileName("Build file '$buildFile.path'")
            failure.assertHasLineNumber(lines + 9)
            failureHasCause("The closure provided is not valid as a rule for 'ComponentSelectionRules'.")
            failureHasCause(message)
    
            where:
            parameters                           | message
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-10-10 21:10
    - 12.2K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/ComponentSelectionRulesDependencyResolveIntegTest.groovy

            fails ':checkDeps'
            failureHasCause("Could not find any version that matches org.utils:api:${selector}.")
    
            when:
            resetExpectations()
            repositoryInteractions {
                'org.utils:api' {
                    expectHeadVersionListing()
                }
            }
    
            then:
            fails ':checkDeps'
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-10-10 21:10
    - 17.9K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/UntrackedTaskIntegrationTest.groovy

                }
            """)
            file("input.txt").text = "input"
    
            when:
            fails("consumer", "--info")
            then:
            failureHasCause("Changes are not tracked, unable determine incremental changes.")
        }
    
        def "can register untracked tasks via the runtime API"() {
            buildFile("""
                tasks.register("myTask") {
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-06-23 08:05
    - 16.4K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/LockingInteractionsIntegrationTest.groovy

    task resolve {
        def files = configurations.lockedConf
        doLast {
            println files.files
        }
    }
    """
    
            when:
            fails 'resolve'
    
            then:
            failureHasCause("Did not resolve 'org:test:1.1' which has been forced / substituted to a different version: '1.0'")
        }
    
        def "fails when a substitute overwrites a locked version"() {
            given:
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-10-10 21:10
    - 12.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelMapIntegrationTest.groovy

                        thing(UnknownThing)
                    }
                }
            """
    
            expect:
            fails "model"
            failureHasCause "Exception thrown while executing model rule: things { ... } @ build.gradle line 12, column 17"
            failureHasCause "Cannot create 'things.thing' with type 'UnknownThing' as this is not a subtype of 'Thing'."
        }
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-09-28 09:51
    - 11.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyLifecycleIntegrationTest.groovy

                println("prop = " + prop.get())
            """
    
            when:
            fails("producer")
    
            then:
            failureHasCause("Querying the mapped value of task ':producer' property 'output' before task ':producer' has completed is not supported")
        }
    
        @ToBeFixedForConfigurationCache(because = "https://github.com/gradle/gradle/issues/19252")
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-09-28 09:51
    - 22.6K bytes
    - Viewed (0)
  10. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/AlreadyOnClasspathPluginUseIntegrationTest.groovy

            when:
            fails "help"
    
            then:
            failureDescriptionStartsWith("Error resolving plugin [id: 'my-plugin', version: '1.0.1']")
            failureHasCause("The request for this plugin could not be satisfied because the plugin is already on the classpath with a different version (1.0).")
    
            and:
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-11-16 22:36
    - 16.2K bytes
    - Viewed (0)
Back to top