Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for assertTasksExecutedInOrder (0.67 sec)

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

        }
    
        @Test
        void failsCompilationWhenConfigScriptIsUpdated() {
            // compilation passes with a config script that does nothing
            executer.withTasks('compileGroovy').run().assertTasksExecutedInOrder(":compileJava",":compileGroovy")
    
            // make sure it fails if the config script applies type checking
            file('groovycompilerconfig.groovy').assertIsFile().copyFrom(file('newgroovycompilerconfig.groovy'))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 18:44:49 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. platforms/jvm/language-groovy/src/integTest/groovy/org/gradle/groovy/compile/GroovyJavaJointCompileSourceOrderIntegrationTest.groovy

                }
                dependencies {
                    implementation localGroovy()
                }
            """
    
            when:
            succeeds 'compileJava'
    
            then:
            result.assertTasksExecutedInOrder(':compileGroovy', ':compileJava')
    
            where:
            configurationStyle | setup
            'lazy'             | "tasks.named('compileJava') { classpath += files(sourceSets.main.groovy.classesDirectory) }"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 18:44:49 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/ScalaCompileWithJavaLibraryIntegrationTest.groovy

                dependencies {
                    implementation("org.scala-lang:scala-library:2.11.12")
                }
            """
    
            when:
            succeeds 'compileJava'
    
            then:
            result.assertTasksExecutedInOrder(':compileScala', ':compileJava')
    
            where:
            configurationStyle | setup
            'lazy'             | "tasks.named('compileJava') { classpath += files(sourceSets.main.scala.classesDirectory) }"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 3.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. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r23/ModelBuilderCrossVersionSpec.groovy

                it.model(BuildEnvironment)
                    .forTasks(new String[0])
                    .get()
            }
    
            then:
            model != null
            result.assertTasksExecutedInOrder()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.4K 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. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/BinariesLifecycleTaskIntegrationTest.groovy

            buildFile << """
                task someOtherTask
                assemble.dependsOn someOtherTask
            """
    
            when:
            run "assemble"
    
            then:
            result.assertTasksExecutedInOrder(":someOtherTask", ":assemble")
        }
    
        def "does not do anything when the project is empty" () {
            when:
            run "assemble"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. 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)
Back to top