- Sort Score
- Result 10 results
- Languages All
Results 11 - 15 of 15 for assertThatCause (0.12 sec)
-
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) -
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) -
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) -
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) -
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)