Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for assertThatCause (0.41 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InProcessGradleExecuter.java

            @Override
            public ExecutionFailure assertHasCause(String description) {
                assertThatCause(startsWith(description));
                return this;
            }
    
            @Override
            public ExecutionFailure assertThatCause(Matcher<? super String> matcher) {
                outputFailure.assertThatCause(matcher);
                Set<String> seen = new LinkedHashSet<>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftLibraryIntegrationTest.groovy

            expect:
            fails "assemble"
            failure.assertHasDescription("Execution failed for task ':compileDebugSwift'.")
            failure.assertHasCause("A build operation failed.")
            failure.assertThatCause(containsText("Swift compiler failed while compiling swift file(s)"))
        }
    
        def "can build debug and release variants of library"() {
            given:
            def lib = new SwiftLib()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 15:17:55 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top