Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 76 for assertThatCause (0.21 sec)

  1. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/internal/transform/NestedModelDslUsageIntegrationSpec.groovy

                    }
                }
    
                ${testPluginImpl()}
            """
    
            then:
            fails "printStrings"
            failure.assertHasLineNumber(7)
            failure.assertThatCause(containsString('Invalid variable name. Must include a letter but only found: $'))
    
            where:
            code << [
                    "subprojects",
                    "project(':a')",
                    "if (true)"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/GccToolChainDiscoveryIntegrationTest.groovy

            }
        }
    }
    """
            fails "compileMainExecutableMainC"
    
            then:
            failure.assertHasDescription("Execution failed for task ':compileMainExecutableMainC'.")
            failure.assertThatCause(CoreMatchers.startsWith("Could not find C compiler 'does-not-exist'"))
        }
    
        @ToBeFixedForConfigurationCache
        def "fails when required linker tool is not available but language tool is available"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyNotationIntegrationSpec.groovy

            buildFile <<  """
    configurations {
        conf
    }
    
    dependencies {
        conf 100
    }
    
    task checkDeps
    """
            then:
            fails 'checkDeps'
            failure.assertThatCause(CoreMatchers.startsWith("Cannot convert the provided notation to an object of type Dependency: 100."))
        }
    
        def "fails gracefully for single null notation"() {
            when:
            buildFile <<  """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:17:32 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/http/AbstractProxyResolveIntegrationTest.groovy

            and:
            failure.assertHasCause("Could not resolve org.gradle.test:some-lib:1.2.17.")
            failure.assertHasCause("Could not get resource '${module.pom.uri}'")
            failure.assertThatCause(CoreMatchers.containsString("Connection refused"))
        }
    
        def "uses authenticated proxy to access remote repository"() {
            given:
            def (proxyUserName, proxyPassword) = ['proxyUser', 'proxyPassword']
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/DetailedExecutionFailure.groovy

            this.failure = failure;
        }
    
        public assertTestsFailed() {
            failure
                .assertHasDescription("Execution failed for task ':test'.")
                .assertThatCause(startsWith("There were failing tests"));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginVersionIntegrationTest.groovy

            fails("check")
            failure.assertHasDescription("Execution failed for task ':checkstyleMain'.")
            failure.assertThatCause(startsWith("Checkstyle rule violations were found. See the report at:"))
            failure.assertThatCause(Matchers.containsText("Checkstyle files with violations: 2"))
            failure.assertThatCause(Matchers.containsText("Checkstyle violations by severity: [warning:2]"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/integTest/groovy/org/gradle/language/c/CLanguageIntegrationTest.groovy

            expect:
            fails "mainExecutable"
            failure.assertHasDescription("Execution failed for task ':compileMainExecutableMainC'.")
            failure.assertHasCause("A build operation failed.")
            failure.assertThatCause(containsText("C compiler failed while compiling broken.c"))
        }
    
        @ToBeFixedForConfigurationCache
        def "build fails when multiple compilations fail"() {
            given:
            def brokenFileCount = 5
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/objectivecpp/ObjectiveCppUnsupportedIntegrationTest.groovy

        }
    }
            """
    
            and:
            helloWorldApp.writeSources(file("src/main"))
    
            when:
            fails "compileMainExecutableMainObjcpp"
    
            then:
            failure.assertThatCause(containsString("Objective-C++ is not available on the Visual C++ toolchain"))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/integTest/groovy/org/gradle/language/objectivec/ObjectiveCUnsupportedIntegrationTest.groovy

        }
    }
            """
    
            and:
            helloWorldApp.writeSources(file("src/main"))
    
            when:
            fails "compileMainExecutableMainObjc"
    
            then:
            failure.assertThatCause(containsString("Objective-C is not available on the Visual C++ toolchain"))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/http/AbstractHttpsRepoResolveIntegrationTest.groovy

            keyStore.configureIncorrectServerCert(executer)
            fails "libs"
    
            then:
            failure.assertHasCause("Could not GET '${server.uri}/repo1/my-group/my-module/1.0/")
            failure.assertThatCause(containsText("java.security.cert.CertPathValidatorException"))
        }
    
        def "build fails when server can't authenticate client"() {
            keyStore = TestKeyStore.init(resources.dir)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top