Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for assertHasNoCause (0.22 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/BuildEventsErrorIntegrationTest.groovy

            throw new RuntimeException('broken')
        }
        task a
    """
    
            when:
            fails()
    
            then:
            failure.assertHasDescription("broken")
                    .assertHasNoCause()
                    .assertHasFileName("Build file '$buildFile'")
                    .assertHasLineNumber(3)
        }
    
        @ToBeFixedForConfigurationCache(skip = INVESTIGATE)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ErrorsOnStdoutScrapingExecutionFailure.java

            return this;
        }
    
        @Override
        public ExecutionFailure assertHasNoCause(String description) {
            delegate.assertHasNoCause(description);
            return this;
        }
    
        @Override
        public ExecutionFailure assertHasNoCause() {
            delegate.assertHasNoCause();
            return this;
        }
    
        @Override
        public ExecutionFailure assertTestsFailed() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:21:25 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ExecutionFailure.java

        /**
         * Asserts that there is no exception that contains the given description.
         */
        ExecutionFailure assertHasNoCause(String description);
    
        ExecutionFailure assertHasNoCause();
    
        ExecutionFailure assertTestsFailed();
    
        /**
         * @param configurationPath, for example ':compile'
         */
    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/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecWithLongCommandLineIntegrationTest.groovy

            """
    
            when:
            fails taskName
    
            then:
            failure.assertThatCause(containsText("A problem occurred starting process"))
            failure.assertHasNoCause("could not be started because the command line exceed operating system limits.")
    
            where:
            method                    | taskName
            'project.javaexec'        | 'runWithJavaExec'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkQueueIntegrationTest.groovy

            and:
            result.groupedOutput.task(":runWork").output.readLines().containsAll("Failure from item1", "Failure from item2")
    
            and:
            result.assertHasNoCause("Failure from item1")
            result.assertHasNoCause("Failure from item2")
            result.assertHasCause("Failure from item3")
    
            where:
            isolationMode << ISOLATION_MODES
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractTestReportIntegrationTest.groovy

            fails "test"
    
            then:
            executedAndNotSkipped(":test")
            failure.assertHasCause("There were failing tests")
            failure.assertHasNoCause("See the")
        }
    
        def "output per test case flag invalidates outputs"() {
            when:
            buildScript """
                $junitSetup
                test.reports.junitXml.outputPerTestCase = false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/PublishedRichVersionConstraintsIntegrationTest.groovy

       Dependency path ':test:unspecified' --> 'org:c:1.0' (runtime) --> 'org:b:1.1'""")
    
            and:
            failure.assertHasNoCause("Dependency path ':test:unspecified' --> 'org:d:1.0' --> 'org:c:1.0' --> 'org:b:1.1'")
        }
    
        def "handles dependency cycles"() {
            given:
            repository {
                'org' {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 13K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionFailure.java

                .collect(joining("\n"));
            assertThat(this.resolution, equalTo(expected));
            return this;
        }
    
        @Override
        public ExecutionFailure assertHasNoCause(String description) {
            Matcher<String> matcher = containsString(description);
            for (Problem problem : problems) {
                for (String cause : problem.causes) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:21:25 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InProcessGradleExecuter.java

                    }
                } else {
                    causes.add(failure.getMessage());
                }
            }
    
            @Override
            public ExecutionFailure assertHasNoCause(String description) {
                outputFailure.assertHasNoCause(description);
                Matcher<String> matcher = containsString(description);
                for (FailureDetails failure : failures) {
                    for (String cause : failure.causes) {
    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. testing/integ-test/src/integTest/groovy/org/gradle/integtests/MultiProjectDependencyIntegrationTest.groovy

            projectDependency from: 'b', to: ['c']
            projectDependency from: 'c', to: ['a']
    
            when:
            fails ':a:build'
    
            then:
            failure.assertHasNoCause()
            failure.assertThatDescription(CoreMatchers.startsWith("Circular dependency between the following tasks:"))
        }
    
        def "project dependency a->b->c->d and c fails"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top