Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 76 of 76 for assertThatCause (0.32 sec)

  1. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppLibraryPublishingIntegrationTest.groovy

    dependencies { implementation 'some.group:testlib:1.2' }
    """
    
            when:
            executer.inDirectory(consumer)
            fails("compileDebugCpp")
    
            then:
            failure.assertThatCause(CoreMatchers.containsString("C++ compiler failed while compiling main.cpp."))
    
            when:
            buildFile << """
    library.privateHeaders.from = []
    library.publicHeaders.from 'src/main/public', 'src/main/headers'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 12:57:50 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativePreCompiledHeaderIntegrationTest.groovy

            then:
            fails "helloSharedLibrary"
            failure.assertHasDescription("Execution failed for task ':${getPCHCompileTaskName("hello", "shared")}'.")
            failure.assertThatCause(CoreMatchers.containsString("compiler failed while compiling prefix-headers"))
        }
    
        @Requires(UnitTestPreconditions.CanInstallExecutable)
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  3. platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/JacocoAggregationIntegrationTest.groovy

                """
    
            when:
            fails(":application:testCodeCoverageReport")
    
            then:
            failure.assertHasDescription("Execution failed for task ':direct:test'.")
                .assertThatCause(startsWith("There were failing tests"))
            result.assertTaskNotExecuted(':application:testCodeCoverageReport"')
    
            file("application/build/reports/jacoco/testCodeCoverageReport/html/index.html").assertDoesNotExist()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 26.3K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ArtifactDependenciesIntegrationTest.groovy

        }
        dependencies {
            compile 'org.gradle.test:external1:1.0'
        }
    }
    """
    
            succeeds('a:listDeps')
            fails('b:listDeps')
            failure.assertThatCause(containsString('Could not find org.gradle.test:external1:1.0.'))
        }
    
        void artifactFilesPreserveFixedOrder() {
            expect:
            repo.module('org', 'leaf1').publish()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 01:09:32 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIntegrationTest.groovy

            failure.assertHasCause("Could not resolve all files for configuration ':compile'.")
            failure.assertHasCause("Failed to transform a.jar to match attributes {artifactType=size}")
            failure.assertThatCause(matchesRegexp("Transform ${failureMessage}."))
    
            when:
            executer.withArguments("-Plenient=true")
            succeeds("resolve")
    
            then:
            outputContains(":resolve NO-SOURCE")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 07 18:43:42 UTC 2023
    - 100.8K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppApplicationIntegrationTest.groovy

    """
    
            expect:
            fails "assemble"
            failure.assertHasDescription("Execution failed for task ':compileDebugCpp'.")
            failure.assertHasCause("A build operation failed.")
            failure.assertThatCause(containsText("C++ compiler failed while compiling broken.cpp"))
        }
    
        @ToBeFixedForConfigurationCache
        def "sources are compiled and linked with C++ tools"() {
            settingsFile << "rootProject.name = 'app'"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 19:11:01 UTC 2024
    - 42.5K bytes
    - Viewed (0)
Back to top