Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for assertThatCause (0.21 sec)

  1. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginVersionIntegrationTest.groovy

            fails("check")
            failure.assertHasDescription("Execution failed for task ':checkstyleMain'.")
            failure.assertThatCause(startsWith("Checkstyle rule violations were found. See the report at:"))
            failure.assertThatCause(Matchers.containsText("Checkstyle files with violations: 2"))
            failure.assertThatCause(Matchers.containsText("Checkstyle violations by severity: [warning:2]"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  2. platforms/software/ivy/src/integTest/groovy/org/gradle/api/publish/ivy/IvyPublishHttpIntegTest.groovy

            failure.assertHasDescription('Execution failed for task \':publishIvyPublicationToIvyRepository\'.')
            failure.assertHasCause('Failed to publish publication \'ivy\' to repository \'ivy\'')
            failure.assertThatCause(CoreMatchers.containsString('Received status code 401 from server: Unauthorized'))
    
            where:
            authScheme        | credsName | creds
            AuthScheme.BASIC  | 'empty'   | null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelGroovyScalarConfigurationIntegrationTest.groovy

            fails 'printResolvedValues'
    
            and:
            failure.assertHasLineNumber(111)
            failure.assertHasCause("Cannot set property: $varname for class: Props to value: java.lang.Object")
            failure.assertThatCause(containsString('''The following types/formats are supported:
      - A String or CharSequence
      - Any Number'''))
    
            where:
            // not including char, Character, and String since Groovy auto-coerces to String,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppLibraryIntegrationTest.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 "finds C and C++ standard library headers"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 19.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentModelIntegrationTest.groovy

                components {
                    another(DefaultUnmanagedComponent)
                }
            }
    
            """
            then:
            fails "model"
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformValuesInjectionIntegrationTest.groovy

            failure.assertHasCause("Failed to transform b.jar (project :b) to match attributes {artifactType=jar, color=green}.")
            failure.assertThatCause(matchesRegexp('Could not isolate parameters MakeGreen\\$Parameters_Decorated@.* of artifact transform MakeGreen'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 11:12:24 UTC 2023
    - 37.7K bytes
    - Viewed (0)
  10. 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)
Back to top