Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for failureCauseContains (0.5 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/http/AbstractRedirectResolveIntegrationTest.groovy

            fails('listJars')
    
            and:
            failureCauseContains("Could not get resource '${server.uri}/repo/group/projectA/1.0/ivy-1.0.xml'")
            failureCauseContains("Could not GET '${backingServer.uri}/redirected/group/projectA/1.0/ivy-1.0.xml'")
            failureCauseContains("Read timed out")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelRuleBindingFailureIntegrationTest.groovy

                        }
                    }
                }
    
                apply type: MyPlugin
            """
    
            when:
            fails "tasks"
    
            then:
            failureCauseContains '''
      MyPlugin.Rules#mutateThing2(MyPlugin.MyThing2, MyPlugin.MyThing3, String, Integer)
        subject:
          - <no path> MyPlugin.MyThing2 (parameter 1) [*]
        inputs:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheGroovyIntegrationTest.groovy

            configurationCache.assertStateStored()
    
            and:
            result.assertTaskExecuted(":compileGroovy")
            failureDescriptionStartsWith("Execution failed for task ':compileGroovy'.")
            failureCauseContains("Cannot infer Groovy class path because no Groovy Jar was found on class path")
    
            when:
            configurationCacheFails "assemble"
    
            then:
            configurationCache.assertStateLoaded()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/process/internal/ErrorInWorkerSocketIntegrationTest.groovy

            workerDaemonProcess.start()
            workerDaemonProcess.run(new Param())
        }
    }
    '''
            when:
            fails('runBrokenWorker')
    
            then:
            failureCauseContains('No response was received from Gradle Worker but the worker process has finished')
            executer.getGradleUserHomeDir().file('workers').listFiles().find { it.name.startsWith('worker-error') }.text.contains(MESSAGE)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/ModelDslCreationIntegrationTest.groovy

            fails "dependencies" // something that doesn't actually require thing1 to be built
            failure.assertHasCause("Declaration of model rule thing1(Thing) @ build.gradle line 9, column 17 is invalid.")
            failureCauseContains("""A model element of type: 'Thing' can not be constructed.
    It must be one of:
        - A managed type (annotated with @Managed)""")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/SettingsIncludeManyIntegrationTest.groovy

            """
    
            expect:
            def result = fails("projects")
            result.assertHasDescription("A problem occurred evaluating settings 'root'.")
            failureCauseContains("org.codehaus.groovy.runtime.ArrayUtil.createArray")
    
            where:
            includeFunction << ["include", "includeFlat"]
        }
    
        @Requires(UnitTestPreconditions.IsGroovy4)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/CacheResolveIntegrationTest.groovy

            buildFile << """
    dependencies { implementation 'org.spring:core:1.0@/../../../../boot/2.0/$hashOfBootJar/pwned.txt' }
    """
    
            when:
            fails('compileJava')
    
            then:
            failureCauseContains('is not a safe archive entry or path name')
            // If the build did not fail, Gradle would effectively write a file inside org.spring/boot/2.0 instead of inside org.spring/core/1.0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 01:27:55 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  8. platforms/core-runtime/messaging/src/integTest/groovy/org/gradle/internal/serialize/ExceptionPlaceholderIntegrationTest.groovy

                    CustomException(String msg) {
                        super(msg);
                    }
                }
            """
    
            when:
            fails 'doIt', '-s'
    
            then:
            failureCauseContains('Boom!')
            failure.assertHasErrorOutput('Suppressed:')
            failure.assertHasErrorOutput('CIRCULAR REFERENCE:')
        }
    
        @Issue("https://github.com/gradle/gradle/issues/9487")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:58:24 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/BuildscriptRepositoryContentFilteringIntegrationTest.groovy

            maven {
                url 'another'
            }
        }
    }
    
    plugins {
        id('base')
    }
    """
            when:
            fails 'buildEnvironment'
    
            then:
            failureCauseContains("When using exclusive repository content in 'settings.pluginManagement.repositories', you cannot add repositories to 'buildscript.repositories'.")
        }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/typesafe/TypeSafeProjectAccessorsCompositeBuildsIntegrationTest.groovy

                println("Dependency path: \\"\${projectDependency.dependencyProject.path}\\"")
            """
    
            when:
            fails 'help'
    
            then:
            failureCauseContains("Could not get unknown property 'other' for extension 'projects' of type org.gradle.accessors.dm.RootProjectAccessor")
            // Desired behavior:
    //        outputContains 'Dependency path: ":other"'
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 15:31:19 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top