Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for assertThatCause (0.19 sec)

  1. platforms/jvm/java-platform/src/integTest/groovy/org/gradle/integtests/resolve/platforms/JavaPlatformResolveIntegrationTest.groovy

                    api "org:foo"
                }
            """
            checkConfiguration("compileClasspath")
    
            when:
            fails ":checkDeps"
    
            then:
            failure.assertThatCause(Matchers.startsWith("No matching variant of project :platform was found."))
        }
    
        def "can enforce a local platform dependency"() {
            def module1 = mavenHttpRepo.module("org", "foo", "1.1").publish()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/ComponentAttributesDynamicVersionIntegrationTest.groovy

                fails ':checkDeps'
                failure.assertHasCause("No matching variant of org.test:module:1.0 was found. The consumer was configured to find attribute 'quality' with value 'canary' but:")
                failure.assertThatCause(containsNormalizedString("Incompatible because this component declares attribute 'quality' with value 'qa' and the consumer needed attribute 'quality' with value '$requested'"))
            }
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CredentialsProviderIntegrationTest.groovy

            for (int i = 0; i < 10; i++) {
                args '--parallel', '--continue'
                fails 'executionCredentials'
    
                failure.assertNotOutput("ConcurrentModificationException")
                failure.assertThatCause(CoreMatchers.equalTo(errorMessage))
                failure.assertHasFailures(4)
            }
    
            where:
            credentialsType         | errorMessage
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/BinaryConfigurationIntegrationTest.groovy

            helloWorldApp.writeSources(file("b/src/main"))
    
            file("b/src/main/cpp/broken.cpp") << """
        A broken C++ file
    """
    
            expect:
            fails "mainExecutable"
            failure.assertThatCause(CoreMatchers.not(CoreMatchers.containsString("Could not stop")))
        }
    
        @ToBeFixedForConfigurationCache
        def "can configure output file for binaries"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftLibraryIntegrationTest.groovy

            expect:
            fails "assemble"
            failure.assertHasDescription("Execution failed for task ':compileDebugSwift'.")
            failure.assertHasCause("A build operation failed.")
            failure.assertThatCause(containsText("Swift compiler failed while compiling swift file(s)"))
        }
    
        def "can build debug and release variants of library"() {
            given:
            def lib = new SwiftLib()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 15:17:55 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/testFixtures/groovy/org/gradle/language/swift/AbstractSwiftComponentIntegrationTest.groovy

            expect:
            fails "verifyBinariesSwiftVersion"
            failure.assertHasDescription("A problem occurred configuring root project 'swift-project'.")
            failure.assertThatCause(CoreMatchers.containsString("property 'sourceCompatibility' is final and cannot be changed any further."))
        }
    
        @RequiresInstalledToolChain(ToolChainRequirement.SWIFTC_4)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ArchiveIntegrationTest.groovy

                }
            '''.stripIndent()
    
            when:
            def failure = runAndFail('copy')
    
            then:
            failure.assertHasDescription("Execution failed for task ':copy'.")
            failure.assertThatCause(CoreMatchers.startsWith("Cannot expand ZIP"))
    
            where:
            scenario | content
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

            }
        }
    
        protected void failureHasCause(String cause) {
            failure.assertHasCause(cause)
        }
    
        protected void failureHasCause(Pattern pattern) {
            failure.assertThatCause(matchesRegexp(pattern))
        }
    
        protected void failureDescriptionStartsWith(String description) {
            failure.assertThatDescription(containsNormalizedString(description))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  9. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/integtests/ApplicationIntegrationSpec.groovy

            file('build.gradle') << """
    installDist.destinationDir = buildDir
    """
            when:
            runAndFail "installDist"
    
            then:
            result.assertThatCause(startsWith("The specified installation directory '${file('build')}' is neither empty nor does it contain an installation"))
        }
    
        def "startScripts respect OS dependent line separators"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 22:15:44 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. platforms/jvm/plugins-test-report-aggregation/src/integTest/groovy/org/gradle/api/plugins/TestReportAggregationPluginIntegrationTest.groovy

                """
    
            when:
            fails(":application:testAggregateTestReport")
    
            then:
            failure.assertHasDescription("Execution failed for task ':direct:test'.")
                   .assertThatCause(startsWith("There were failing tests"))
            result.assertTaskNotExecuted(':application:testAggregateTestReport')
    
            file("application/build/reports/tests/unit-test/aggregated-results").assertDoesNotExist()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 22.7K bytes
    - Viewed (0)
Back to top