- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for assertThatCause (0.29 sec)
-
platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/PluginUseDslIntegrationSpec.groovy
failure.assertHasLineNumber 3 failure.assertHasFileName("Build file '${buildFile}'") failure.assertThatCause(containsString("all buildscript {} blocks must appear before any plugins {} blocks")) includesLinkToUserguide() } void includesLinkToUserguide() { failure.assertThatCause(containsString("https://docs.gradle.org/${GradleVersion.current().getVersion()}/userguide/plugins.html#sec:plugins_block")) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 22:36:52 UTC 2023 - 11.7K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/RecoverFromBrokenResolutionIntegrationTest.groovy
and: failure.assertHasDescription("Execution failed for task ':retrieve'.") failure.assertHasCause("Could not resolve all files for configuration ':compile'.") failure.assertThatCause(CoreMatchers.containsString("Received status code 500 from server: broken")) when: server.resetExpectations() then: executer.withArgument("--offline") run 'retrieve'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 10.8K bytes - Viewed (0) -
platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/PluginManagementDslSpec.groovy
given: buildScript """ pluginManagement {} """ when: fails 'help' then: failure.assertHasLineNumber(2) failure.assertThatCause(containsString("Only Settings scripts can contain a pluginManagement {} block.")) includesLinkToUserguide() and: verifyAll(receivedProblem) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 28 15:16:47 UTC 2024 - 10.2K bytes - Viewed (0) -
platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy
} def "analyze bad code"() { badCode() expect: fails("check") failure.assertHasDescription("Execution failed for task ':pmdTest'.") failure.assertThatCause(containsString("2 PMD rule violations were found. See the report at:")) failure.assertHasResolutions(SCAN) file("build/reports/pmd/main.xml").assertContents(not(containsClass("org.gradle.Class1")))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 28 18:47:00 UTC 2024 - 13.5K bytes - Viewed (0) -
platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/internal/transform/ModelDslRuleInputDetectionIntegrationSpec.groovy
""" then: fails "tasks" failure.assertHasLineNumber(15) failure.assertThatCause(containsString("Invalid model path given as rule input.")) failure.assertThatCause(containsString("Model path 'foo. bar' is invalid due to invalid name component.")) failure.assertThatCause(containsString("Model element name ' bar' has illegal first character ' ' (names must start with an ASCII letter or underscore)."))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 13.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/http/HttpAuthenticationDependencyResolutionIntegrationTest.groovy
then: fails 'checkDeps' and: failedResolve.assertFailurePresent(failure) failure .assertResolutionFailure(':compile') .assertThatCause(CoreMatchers.containsString('Received status code 401 from server: Unauthorized')) where: authScheme | credsName | creds BASIC | 'missing' | '' DIGEST | 'missing' | ''
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 18.7K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/ComponentAttributesRulesIntegrationTest.groovy
failure.assertThatCause(containsNormalizedString("The only attribute distinguishing these variants is 'org.gradle.usage'. Add this attribute to the consumer's configuration to resolve the ambiguity:")) failure.assertThatCause(containsNormalizedString("- Value: 'unknownApiVariant' selects variant: 'api'"))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:10:53 UTC 2024 - 16.7K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/plugin/ScriptPluginClassLoadingIntegrationTest.groovy
someMethod() """ when: fails "help" then: failure.assertHasFileName("Script '${file("script2.gradle").absolutePath}'") failure.assertThatCause(containsText("Could not find method someMethod()")) } def "methods defined in settings script are not inherited by scripts"() { given: settingsFile << """ def someMethod() {}
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 13:27:34 UTC 2024 - 9.9K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-provider/src/integTest/groovy/org/gradle/internal/declarativedsl/settings/SoftwareTypeDeclarationIntegrationTest.groovy
nonPublic = "foo" } """ fails(":printTestSoftwareTypeExtensionImplConfiguration") then: failure.assertThatCause(Matchers.containsString("Failed to interpret the declarative DSL file")) failure.assertThatCause(Matchers.containsString("unresolved reference 'nonPublic'")) } def 'can declare and configure a custom software type from a parent class'() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun May 19 16:59:01 UTC 2024 - 11K bytes - Viewed (0) -
platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/NativeBinariesIntegrationTest.groovy
failure.assertHasCause("A build operation failed.") def exeName = executable("build/binaries/mainExecutable/main").file.name failure.assertThatCause(containsText("Linker failed while linking ${exeName}")) } @ToBeFixedForConfigurationCache def "build fails when link library fails"() { given: buildFile << """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 11.3K bytes - Viewed (0)