Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for assertHasNoCause (0.23 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. 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)
  8. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingFromSingleCustomPluginRepositorySpec.groovy

            buildScript """
              plugins {
                  id "org.example.plugin"
              }
            """
    
            when:
            fails("pluginTask")
    
            then:
            failure.assertHasNoCause(repoType)
    
            where:
            repoType << [IVY, MAVEN]
        }
    
        @Requires(UnitTestPreconditions.Online)
        def "Fails gracefully if a plugin is not found in #repoType repo"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:30:55 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top