Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for assertTasksExecutedInOrder (0.4 sec)

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

                succeeds "thing"
                result.assertTasksExecutedInOrder ":thing", ":finalizerDep", ":finalizer"
            }
            2.times {
                fails "thing", "-Pthing.broken"
                result.assertTasksExecutedInOrder ":thing", ":finalizerDep", ":finalizer"
            }
            2.times {
                fails "thing", "-PfinalizerDep.broken"
                result.assertTasksExecutedInOrder ":thing", ":finalizerDep"
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  2. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskExecutionIntegrationTest.groovy

                succeeds 'a'
                result.assertTasksExecutedInOrder(
                    any(
                        exact(':f', ':h'),
                        exact(any(':c', ':g'), ':a'),
                        exact(':f', ':d', ':c')
                    )
                )
            }
    
            and:
            2.times {
                succeeds 'b'
                result.assertTasksExecutedInOrder(
                    any(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskBridgingIntegrationTest.groovy

            task customTask
            customTask.dependsOn tasks.withType(ClimbTask)
            """
    
            when:
            succeeds('customTask')
    
            then:
            result.assertTasksExecutedInOrder(':climbTask', ':customTask')
        }
    
        def "a non-rule-source task can depend on one or more task of types created via both rule sources and old world container"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 12:57:53 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. testing/integ-test/src/integTest/groovy/org/gradle/integtests/AntProjectIntegrationTest.groovy

            TestFile target2File = testFile('build/target2.txt')
            target1File.assertDoesNotExist()
            target2File.assertDoesNotExist()
    
            inTestDirectory().withTasks('ant').run().assertTasksExecutedInOrder(':initialize', ':target2', ':target1', ':ant')
    
            target1File.assertExists()
            target2File.assertExists()
        }
    
        @Test
        @ToBeFixedForConfigurationCache(because = "AntTarget task")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ErrorsOnStdoutScrapingExecutionResult.java

            delegate.assertNotPostBuildOutput(expectedOutput);
            return this;
        }
    
        @Override
        public ExecutionResult assertTasksExecutedInOrder(Object... taskPaths) {
            delegate.assertTasksExecutedInOrder(taskPaths);
            return this;
        }
    
        @Override
        public ExecutionResult assertTasksExecuted(Object... taskPaths) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionResultTest.groovy

            result.assertTasksExecuted([":a", ":b"])
            result.assertTasksExecuted(":a", ":b", ":a", [":a", ":b"], ":b")
    
            and:
            result.assertTasksExecutedInOrder(":a", ":b")
            result.assertTasksExecutedInOrder([":a", ":b"])
    
            and:
            result.assertTaskExecuted(':a')
            result.assertTaskExecuted(':b')
            result.assertTaskNotExecuted(':c')
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/file/TaskFilePropertiesIntegrationTest.groovy

        }
    }
    dependencies { deps files('b.jar') { builtBy jar } }
    artifacts { archives otherJar }
    '''
    
            when:
            run("doStuff")
    
            then:
            result.assertTasksExecutedInOrder(any(':b:jar', ':b:otherJar'), ':a:doStuff')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ExecutionResult.java

         * and an explanation of their usage.  Defaults to a {@link TaskOrderSpecs#exact(Object[])} assertion.
         */
        ExecutionResult assertTasksExecutedInOrder(Object... taskPaths);
    
        /**
         * Asserts that exactly the given set of tasks have been executed in any order.
         */
        ExecutionResult assertTasksExecuted(Object... taskPaths);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InProcessGradleExecuter.java

            }
    
            @Override
            public ExecutionResult assertTasksExecutedInOrder(Object... taskPaths) {
                Set<String> expected = TaskOrderSpecs.exact(taskPaths).getTasks();
                assertTasksExecuted(expected);
                assertTaskOrder(taskPaths);
                outputResult.assertTasksExecutedInOrder(taskPaths);
                return this;
            }
    
            @Override
    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/ProjectLoadingIntegrationTest.java

            executer.expectDeprecationWarnings(2);
            usingBuildFile(childBuildFile).usingSettingsFile(relocatedSettingsFile).withTasks("do-stuff").run().assertTasksExecutedInOrder(":child:do-stuff");
        }
    
        @Test
        public void multiProjectBuildCanHaveAllProjectsAsChildrenOfSettingsDir() {
            TestFile settingsFile = testFile("settings.gradle");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18K bytes
    - Viewed (0)
Back to top