- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 30 for assertThatCause (0.19 sec)
-
platforms/software/platform-base/src/integTest/groovy/org/gradle/api/plugins/BasePluginIntegrationTest.groovy
when: fails "clean" then: failure.assertThatCause(containsString("Unable to delete directory '${file('build')}'")) failure.assertThatCause(containsString("Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.")) failure.assertThatCause(containsString(file("build/newFile").absolutePath)) cleanup:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 28 23:38:57 UTC 2024 - 6.9K bytes - Viewed (0) -
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) -
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) -
platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/ValitdatePluginsTrait.groovy
messages.forEach { problem -> String indentedMessage = problem.message.replaceAll('\n', '\n ').trim() failure.assertThatCause(containsString("$problem.severity: $indentedMessage")) } // TODO (donat) do probably don't want to have this, as the explicit problem assertions are preferred def problems = collectedProblems
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 15 14:30:05 UTC 2024 - 2.9K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionFailure.java
} return this; } @Override public ExecutionFailure assertHasCause(String description) { assertThatCause(startsWith(description)); return this; } @Override public ExecutionFailure assertThatCause(Matcher<? super String> matcher) { Set<String> seen = new LinkedHashSet<>(); for (Problem problem : problems) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 09:21:25 UTC 2024 - 12.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/verification/DependencyVerificationIntegrityCheckIntegTest.groovy
then: failure.assertThatCause(containsText(""" 2 artifacts failed verification: - monitor-1.0.jar (org:monitor:1.0) from repository maven - monitor-1.0.pom (org:monitor:1.0) from repository maven""")) when: executer.requireIsolatedDaemons() fails "resolveCompileClasspath" then: failure.assertThatCause(containsText("""
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 02 07:31:22 UTC 2024 - 41.4K bytes - Viewed (0) -
platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerPluginClasspathInjectionIntegrationTest.groovy
.withPluginClasspath(plugin.implClasspath) .buildAndFail() then: // This is how the class not being visible will manifest execFailure(result).assertThatCause( anyOf( containsString("Could not get unknown property 'org' for task ':echo1' of type org.gradle.api.DefaultTask."),
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jan 15 03:45:31 UTC 2024 - 13K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/integTest/groovy/org/gradle/internal/operations/BuildOperationExecutorIntegrationTest.groovy
} """ when: fails("causeErrors") then: failure.assertHasCause("There was a failure while populating the build operation queue:") failure.assertThatCause(Matchers.containsText("Multiple build operations failed")); } // This is the current behavior: // We need to make sure that the build operation ids of nested builds started by a GradleBuild task do not overlap.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 12:12:49 UTC 2024 - 5.4K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ExecutionFailure.java
* Asserts that there is a failure present with the given cause (ie the bit after the description). * * <p>Error messages are normalized to use new-line char as line separator. */ ExecutionFailure assertThatCause(Matcher<? super String> matcher); /** * Asserts that there is a failure present with the given description (ie the bit after '* What went wrong'). *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 09:21:25 UTC 2024 - 4.4K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryNamedTypeIntegrationTest.groovy
then: failure.assertHasCause("Cannot set readonly property: name for class: Thing\$Impl") when: fails("changeDynProp") then: failure.assertThatCause(allOf( startsWith("No signature of method: Thing\$Impl"), containsString(".setProperty() is applicable for argument types: (String, String) values: [name, 123]") )) when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 05:39:53 UTC 2024 - 6.2K bytes - Viewed (0)