Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for assertTasksSkipped (0.24 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. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftIncrementalBuildIntegrationTest.groovy

            when:
            succeeds "assemble"
    
            then:
            result.assertTasksExecuted(assembleAppTasks)
            result.assertTasksSkipped(assembleAppTasks)
        }
    
        def "rebuilds application when a single source file in library changes"() {
            createDirs("app", "greeter")
            settingsFile << "include 'app', 'greeter'"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  3. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/xctest/SwiftXCTestIntegrationTest.groovy

            testBundle.writeToProject(testDirectory)
    
            when:
            succeeds("assemble")
    
            then:
            result.assertTasksExecuted(":assemble")
            result.assertTasksSkipped(":assemble")
        }
    
        def "skips test tasks when no source is available for Swift library"() {
            given:
            buildFile << "apply plugin: 'swift-library'"
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.8K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppIncrementalBuildIntegrationTest.groovy

            appSourceFile.replace("world", "planet")
    
            and:
            run installApp
    
            then:
            result.assertTasksExecuted(libraryDebug.allToLink, appDebug.allToInstall)
            result.assertTasksSkipped(libraryDebug.allToLink)
            result.assertTasksNotSkipped(appDebug.allToInstall)
    
            and:
            libObjects.noneRecompiled()
            appObjects.recompiledFile(appSourceFile)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 40.4K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftLibraryIntegrationTest.groovy

            """
    
            expect:
            succeeds "assemble"
            result.assertTasksExecuted(":compileDebugSwift", ":linkDebug", ":assemble")
            // TODO - should skip the task as NO-SOURCE
            result.assertTasksSkipped(":compileDebugSwift", ":linkDebug", ":assemble")
        }
    
        def "build fails when compilation fails"() {
            given:
            buildFile << """
                apply plugin: 'swift-library'
             """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 15:17:55 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. 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)
Back to top