- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 229 for assertHasDescription (0.31 sec)
-
subprojects/core/src/integTest/groovy/org/gradle/api/BuildEventsErrorIntegrationTest.groovy
fails("broken") then: failure.assertHasFailures(2) failure.assertHasDescription("Execution failed for task ':broken'.") .assertHasCause("broken task") .assertHasFileName("Build file '$buildFile'") .assertHasLineNumber(6) failure.assertHasDescription("broken closure") .assertHasFileName("Build file '$buildFile'")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 6K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/ProjectConfigureEventsErrorIntegrationTest.groovy
then: fails('test') failure.assertHasFailures(2) failure.assertHasDescription("A problem occurred evaluating root project 'projectConfigure'.") .assertHasCause("configure") .assertHasFileName("Build file '${buildFile}'") .assertHasLineNumber(6) failure.assertHasDescription("A problem occurred configuring root project 'projectConfigure'.")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 6.8K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/options/TaskOptionFailureIntegrationTest.groovy
// when: // runAndFail 'someTask', '-second', 'foo' // // then: // failure.assertHasDescription("Problem configuring task :someTask from command line. Unknown command-line option '-second'.") when: runAndFail 'someTask', '--second' then: failure.assertHasDescription("Problem configuring task :someTask from command line.")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 13:27:35 UTC 2024 - 7.7K bytes - Viewed (0) -
testing/integ-test/src/integTest/groovy/org/gradle/integtests/ProjectLoadingIntegrationTest.java
ExecutionFailure result = usingBuildFile(file).runWithFailure(); result.assertHasDescription("The specified build file '" + file + "' does not exist."); file.createDir(); result = usingBuildFile(file).runWithFailure(); result.assertHasDescription("The specified build file '" + file + "' is not a file."); } @Test
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 18K bytes - Viewed (0) -
testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskErrorExecutionIntegrationTest.groovy
} """ expect: fails "do-stuff" failure.assertHasFileName(String.format("Build file '%s'", buildFile)) failure.assertHasLineNumber(3) failure.assertHasDescription("Execution failed for task ':do-stuff'.") failure.assertHasCause("broken") } def "reports task action execution fails with runtime exception"() { buildFile << """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 09:03:53 UTC 2024 - 12.5K bytes - Viewed (0) -
subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/IncludedBuildValidationIntegrationTest.groovy
failure.assertHasDescription("Included build 'b1' must have a settings file.") } def "reports failure for duplicate included build name"() { given: def buildC = singleProjectBuild("buildC") includeBuild(buildB) includeBuildAs(buildC, 'buildB') when: fails(buildA, "help") then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 24 06:54:47 UTC 2023 - 3.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ConfigurationBuildDependenciesIntegrationTest.groovy
expect: executer.withArgument("--dry-run") fails("useCompileConfiguration") failure.assertHasDescription("Could not determine the dependencies of task ':useCompileConfiguration'.") failure.assertHasCause('broken') fails("useCompileConfiguration") failure.assertHasDescription("Could not determine the dependencies of task ':useCompileConfiguration'.") failure.assertHasCause('broken')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 02 20:50:18 UTC 2024 - 14.5K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/ExternalScriptErrorIntegrationTest.groovy
def "produces reasonable error message when external script fails with Groovy exception"() { externalScript << ''' doStuff() ''' when: fails() then: failure.assertHasDescription('A problem occurred evaluating script.') .assertHasCause('Could not find method doStuff() for arguments [] on root project') .assertHasFileName("Script '${externalScript}'")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 2.8K bytes - Viewed (0) -
subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildTaskDependencyIntegrationTest.groovy
fails(buildA, ":delegate") then: failure.assertHasDescription("Could not determine the dependencies of task ':delegate'.") failure.assertHasCause("Task with path ':logP' not found in project ':buildB'.") when: fails(buildA, ":subDelegate") then: failure.assertHasDescription("Could not determine the dependencies of task ':subDelegate'.")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 24 06:54:47 UTC 2023 - 9.1K bytes - Viewed (0) -
platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/maven/MavenS3RepoErrorsIntegrationTest.groovy
setup: buildFile << mavenAwsRepoDsl() when: module.pom.expectDownloadAuthenticationError() then: fails 'retrieve' and: failure.assertHasDescription("Execution failed for task ':retrieve'.") failure.assertHasCause("Could not resolve all files for configuration ':compile'.") .assertHasCause('Could not resolve org.gradle:test:1.85')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 5.3K bytes - Viewed (0)