Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 76 for assertThatCause (0.19 sec)

  1. 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)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestVerificationFailureHandlingIntegrationTest.groovy

                tasks.named('test', Test).configure {
                    jvmArgs '-XX:UnknownArgument'
                }
            '''
        }
    
        void assertFatalTestExecutionError() {
            failure.assertThatCause(Matchers.matchesRegexp("Process 'Gradle Test Executor \\d+' finished with non-zero exit value \\d+"))
        }
    
        def withTestVerificationFailure() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/CancellationSpec.groovy

                def failure = OutputScrapingExecutionFailure.from(stdout.toString(), stderr.toString())
                failure.assertHasDescription("Execution failed for task '${taskPath}'.")
                failure.assertThatCause(cancelledMessageMatcher(taskPath))
            } else {
                // Verify that there is some logging output that explains that the build was cancelled, for versions that do not include any context in the message
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. platforms/jvm/java-platform/src/integTest/groovy/org/gradle/integtests/resolve/platforms/JavaPlatformResolveIntegrationTest.groovy

                    api "org:foo"
                }
            """
            checkConfiguration("compileClasspath")
    
            when:
            fails ":checkDeps"
    
            then:
            failure.assertThatCause(Matchers.startsWith("No matching variant of project :platform was found."))
        }
    
        def "can enforce a local platform dependency"() {
            def module1 = mavenHttpRepo.module("org", "foo", "1.1").publish()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/ComponentAttributesDynamicVersionIntegrationTest.groovy

                fails ':checkDeps'
                failure.assertHasCause("No matching variant of org.test:module:1.0 was found. The consumer was configured to find attribute 'quality' with value 'canary' but:")
                failure.assertThatCause(containsNormalizedString("Incompatible because this component declares attribute 'quality' with value 'qa' and the consumer needed attribute 'quality' with value '$requested'"))
            }
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 10.2K bytes
    - Viewed (0)
Back to top