Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 57 for failureCauseContains (0.26 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/internal/buildevents/BuildFailureIntegrationTest.groovy

                throw selfReferencingException
            """
    
            when:
            fails("help", "-s")
    
            then:
            failureCauseContains("BOOM self")
            result.assertHasErrorOutput("Caused by: java.lang.Throwable: [CIRCULAR REFERENCE: java.lang.Exception: BOOM self]")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 13:10:04 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelRuleBindingValidationIntegrationTest.groovy

                  String s1(Integer iDontExist) {
                    "foo"
                  }
                }
    
                pluginManager.apply Rules
            """
    
            then:
            fails "help"
            failureCauseContains("""
      Rules#s1(Integer)
        inputs:
          - <no path> Integer (parameter 1) [*]
    
    [*] - indicates that a model item could not be found for the path or type.""")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/spock/Spock2FilteringIntegrationTest.groovy

        }
    
        def "can not filter specific iterations of unrolled tests"() {
            when:
            fails("test", "--tests", "SubClass.$testMethod")
    
            then:
            failureCauseContains("No tests found for given includes: [SubClass.$testMethod](--tests filter)")
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/plugins/PrecompiledGroovyPluginsIntegrationTest.groovy

                        mavenCentral()
                    }
                }
                println("foo project plugin applied")
            """
    
            then:
            fails("help")
            failureCauseContains("Only Settings scripts can contain a pluginManagement {} block.")
        }
    
        def "precompiled project plugin can not use buildscript block"() {
            when:
            enablePrecompiledPluginsInBuildSrc()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 28.7K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/plugins/JavaGradlePluginPluginIntegrationTest.groovy

                            implementationClass = 'com.foo.Bar'
                        }
                    }
                }
            """
            expect:
            fails "jar"
            failureCauseContains(String.format(JavaGradlePluginPlugin.DECLARATION_MISSING_ID_MESSAGE, 'helloPlugin'))
        }
    
        def "Fails if plugin declaration has no implementation class"() {
            given:
            buildFile()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/integTest/groovy/org/gradle/internal/declarativedsl/ErrorHandlingOnReflectiveCallsSpec.groovy

                    access {
                        name = "something"
                    }
                }
            """
    
            when:
            fails(":help")
    
            then:
            failureCauseContains("Boom")
        }
    
        private String defineSettingsPluginRegisteringSoftwareTypeProvidingPlugin() {
            return """
            package com.example.restricted;
    
            import org.gradle.api.DefaultTask;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 10:11:12 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedToModelMapElementIntegrationTest.groovy

                    }
                }
    
                apply type: Rules
            '''
    
            then:
            fails "taskWithUnboundRuleSourceApplied"
    
            and:
            failureCauseContains '''
      UnboundRuleSource#unboundRule(String, Integer, String)
        subject:
          - <no path> String (parameter 1) [*]
              scope: tasks.taskWithUnboundRuleSourceApplied
        inputs:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/invocation/GradleLifecycleUnsupportedTypesIntegrationTest.groovy

                    }
                }
    
                configureGradleLifecycle()
            """
    
            when:
            fails "help"
    
            then:
            failureCauseContains("cannot serialize object of type '$concreteTypeName'")
    
            where:
            concreteType                      | baseType         | reference
            // Live JVM state
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:15:52 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/internal/transform/ModelDslRuleInputDetectionIntegrationSpec.groovy

                    foobah {
                    }
                    fooar {
                    }
                }
            '''
    
            when:
            fails "tasks"
    
            then:
            failureCauseContains('''
      fooar { ... } @ build.gradle line 20, column 17
        subject:
          - fooar Object [*]
              suggestions: foobar
    
      foobah { ... } @ build.gradle line 18, column 17
        subject:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/internal/cache/CacheConfigurationsIntegrationTest.groovy

            settingsFile << """
                caches {
                    ${modifyCacheConfiguration(property, value)}
                }
            """
    
            expect:
            fails("help")
            failureCauseContains(String.format(DefaultCacheConfigurations.UNSAFE_MODIFICATION_ERROR, errorProperty))
    
            where:
            property                                           | errorProperty                  | value
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 20:02:29 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top