Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for assertTasksSkipped (0.22 sec)

  1. 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)
  2. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslIntegrationTest.kt

            )
    
            val taskName = ":writeInputToFile"
    
            build(taskName, "-PinputString=string1").assertTasksExecutedAndNotSkipped(taskName)
    
            build(taskName, "-PinputString=string1").assertTasksSkipped(taskName)
    
            build(taskName, "-PinputString=string2").assertTasksExecutedAndNotSkipped(taskName)
        }
    
        @Test
        @Issue("https://youtrack.jetbrains.com/issue/KT-36297")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 18:26:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppApplicationIntegrationTest.groovy

            """
    
            expect:
            succeeds "assemble"
            result.assertTasksExecuted(tasks.debug.allToInstall, ':assemble')
            // TODO - should skip the task as NO-SOURCE
            result.assertTasksSkipped(tasks.debug.allToInstall, ':assemble')
        }
    
        @ToBeFixedForConfigurationCache
        def "build fails when compilation fails"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 19:11:01 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileIntegrationTest.groovy

            buildFile << """
                // No plugins applied
                task compile(type: JavaCompile)
            """
    
            when:
            run("compile")
    
            then:
            result.assertTasksSkipped(":compile")
        }
    
        @Issue("GRADLE-3152")
        def "can use the task without applying java-base plugin"() {
            buildFile << """
                task compile(type: JavaCompile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionIntegrationTest.groovy

            file('dest').assertHasDescendants(
                'one.txt'
            )
    
            when:
            file('files/b/ignore.txt').createFile()
            run 'copy'
    
            then:
            result.assertTaskSkipped(':copy')
            file('dest').assertHasDescendants(
                'one.txt'
            )
    
            when:
            file('files/a/three.txt').createFile()
            run 'copy'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 12:54:09 UTC 2024
    - 21K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/userinput/UserInputHandlingIntegrationTest.groovy

            result.assertTaskNotSkipped(":generate")
            file("build/out.txt").text == "value"
    
            when:
            runWithInput("generate", prompt, "value")
    
            then:
            result.assertTaskSkipped(":generate")
    
            when:
            runWithInput("generate", prompt, "")
    
            then:
            result.assertTaskNotSkipped(":generate")
            file("build/out.txt").text == "<default>"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskExecutionIntegrationTest.groovy

            when:
            file("src/main/java/Hello.java").text = ORIGINAL_HELLO_WORLD
            then:
            withBuildCache().run "jar"
            result.assertTaskSkipped ":compileJava"
        }
    
        def "clean doesn't get cached"() {
            withBuildCache().run "assemble"
            withBuildCache().run "clean"
            withBuildCache().run "assemble"
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyIntegrationTest.groovy

            """
    
            when:
            run("thing")
    
            then:
            output.count("calculating value") == 1
    
            when:
            run("thing")
    
            then:
            result.assertTaskSkipped(":thing")
            output.count("calculating value") == 1
    
            when:
            run("help")
    
            then:
            output.count("calculating value") == 0
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceIntegrationTest.groovy

            when:
            file("src/main/java/Hello.java").text = ORIGINAL_HELLO_WORLD
            then:
            withBuildCache().run "jar"
            result.assertTaskSkipped ":compileJava"
        }
    
        def "clean doesn't get cached"() {
            withBuildCache().run "assemble"
            withBuildCache().run "clean"
            withBuildCache().run "assemble"
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:08:20 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

                class Foo {
                    int x
                    String toString() { "xxx" }
                }
            """
    
            expect:
            run("foo").assertTaskNotSkipped(":foo")
            run("foo").assertTaskSkipped(":foo")
        }
    
        @Issue("https://issues.gradle.org/browse/GRADLE-3435")
        def "task is not up-to-date after file moved between input properties"() {
            (1..3).each {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top