Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for assertTasksSkipped (0.39 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildIntegrationTest.groovy

            then:
            result.assertTasksSkipped(":a", ":b")
    
            // Remove input file
            when:
            file('src/file2.txt').delete()
            succeeds "b"
    
            then:
            result.assertTasksNotSkipped(":a")
            result.assertTasksSkipped(":b")
    
            when:
            succeeds "b"
    
            then:
            result.assertTasksSkipped(":a", ":b")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionResultTest.groovy

            result.assertTasksNotSkipped(":a", ":a", [":a"])
    
            and:
            result.assertTaskNotSkipped(":a")
    
            and:
            result.assertTasksSkipped(":b")
            result.assertTasksSkipped(":b", ":b", [":b"])
    
            and:
            result.assertTaskSkipped(":b")
    
            when:
            result.assertTasksExecuted(":a")
    
            then:
            def e = thrown(AssertionError)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/rules/OverlappingOutputsIntegrationTest.groovy

            dirTaskOutput.assertExists()
            // Both can be from the cache because the dirTask ran first and the fileTask doesn't directly overlap with a file produced by dirTask
            result.assertTasksSkipped(dirTask, fileTask)
        }
    
        def "overlapping output with fileTask, dirTask then dirTask only"() {
            def (String fileTask, TestFile fileTaskOutput,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 20:54:14 UTC 2024
    - 30K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheScriptTaskDefinitionIntegrationTest.groovy

            then:
            result.assertTasksExecutedAndNotSkipped(":a")
            outputFile.assertIsFile()
    
            when:
            configurationCacheRun "a"
    
            then:
            result.assertTasksSkipped(":a")
    
            when:
            outputFile.delete()
            configurationCacheRun "a"
    
            then:
            result.assertTasksExecutedAndNotSkipped(":a")
            outputFile.assertIsFile()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ArchiveIntegrationTest.groovy

            then:
            result.assertTaskExecuted(":copy")
            file('dest').assertHasDescendants('subdir1/file1.txt', 'subdir2/file2.txt')
    
            when:
            run 'copy'
    
            then:
            result.assertTasksSkipped(":copy")
    
            when:
            createZip('test.zip') {
                subdir1 {
                    file 'file1.txt'
                }
                subdir2 {
                    file 'file2.xml'
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InProcessGradleExecuter.java

            @Override
            public ExecutionResult assertTasksSkipped(Object... taskPaths) {
                Set<String> expected = new TreeSet<>(flattenTaskPaths(taskPaths));
                assertThat(skippedTasks, equalTo(expected));
                outputResult.assertTasksSkipped(expected);
                return this;
            }
    
            @Override
            public ExecutionResult assertTaskSkipped(String taskPath) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheJavaIntegrationTest.groovy

            this.result.assertTasksExecuted(":compileJava", ":processResources", ":classes", ":jar", ":compileTestJava", ":processTestResources", ":testClasses", ":test", ":assemble", ":check", ":build")
            result.assertTasksSkipped(":processResources", ":processTestResources")
            classFile.isFile()
            testClassFile.isFile()
            testResults.isDirectory()
            assertTestsExecuted("ThingTest", "ok")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionResult.java

            return this;
        }
    
        public Set<String> getSkippedTasks() {
            return new TreeSet<>(grepTasks(SKIPPED_TASK_PATTERN));
        }
    
        @Override
        public ExecutionResult assertTasksSkipped(Object... taskPaths) {
            Set<String> expectedTasks = new TreeSet<>(flattenTaskPaths(taskPaths));
            Set<String> skippedTasks = getSkippedTasks();
            if (!expectedTasks.equals(skippedTasks)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedCustomTaskExecutionIntegrationTest.groovy

            buildFile << defineConsumerTask()
    
            withBuildCache().run "consumer"
    
            when:
            cleanBuildDir()
            withBuildCache().run "consumer"
            then:
            result.assertTasksSkipped(":consumer", ":producer")
        }
    
        @Issue("https://github.com/gradle/gradle/issues/3043")
        def "URL-quoted characters in file names are handled properly"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

        protected void noneSkipped() {
            assertHasResult()
            result.assertTasksSkipped()
        }
    
        protected void allSkipped() {
            assertHasResult()
            result.assertTasksNotSkipped()
        }
    
        protected void skipped(String... tasks) {
            assertHasResult()
            tasks.each {
                result.assertTaskSkipped(it)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 32.9K bytes
    - Viewed (0)
Back to top