Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for withBuildCache (0.2 sec)

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

        void taskIsNotCached(String task) {
            withBuildCache().run task
            executedAndNotSkipped(task)
            cleanBuildDir()
    
            withBuildCache().run task
            executedAndNotSkipped(task)
        }
    
        void taskIsCached(String task) {
            withBuildCache().run task
            executedAndNotSkipped(task)
            cleanBuildDir()
    
            withBuildCache().run task
            skipped(task)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/TaskCacheabilityReasonIntegrationTest.groovy

            """
            when:
            withBuildCache().run "unspecified"
            then:
            assertCachingDisabledFor NOT_ENABLED_FOR_TASK, "Caching has not been enabled for the task"
        }
    
        def "cacheability for a cacheable task is null"() {
            buildFile << """
                task cacheable(type: Cacheable) {}
            """
            when:
            withBuildCache().run "cacheable"
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:59:01 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceIntegrationTest.groovy

                application {
                    mainClass = "Hello"
                }
            """
            withBuildCache().run "run"
            withBuildCache().run "clean"
            expect:
            withBuildCache().run "run"
        }
    
        def "tasks get cached when source code changes back to previous state"() {
            expect:
            withBuildCache().run "jar" assertTaskNotSkipped ":compileJava" assertTaskNotSkipped ":jar"
    
            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)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/rules/OverlappingOutputsIntegrationTest.groovy

            when:
            withBuildCache().run(first, second)
            then:
            firstOutput.assertExists()
            secondOutput.assertExists()
            // Only the first task can be cached since the second detects the overlap
            assertTaskOutputCached(first)
            assertTaskOutputNotCached(second)
    
            when:
            cleanBuildDir()
            withBuildCache().run(first, second)
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 20:54:14 UTC 2024
    - 30K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformExecutionBuildOperationIntegrationTest.groovy

                                attributes.attribute(color, 'blue')
                            }
                        }
                    }
                }
            """
    
            when:
            withBuildCache().run ":consumer:resolve"
    
            then:
            executedAndNotSkipped(":consumer:resolve")
    
            result.groupedOutput.transform("MakeGreen")
                .assertOutputContains("processing [producer.jar]")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 16:27:38 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  6. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/NestedInputKotlinImplementationTrackingIntegrationTest.groovy

            }
    
            when:
            executer.inDirectory(project1)
            withBuildCache().run 'myTask'
    
            then:
            executedAndNotSkipped(':myTask')
            project1.file('build/tmp/myTask/output.txt').text == "hello"
    
            when:
            executer.inDirectory(project2)
            withBuildCache().run 'myTask'
    
            then:
            skipped(':myTask')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 06:52:58 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/SnapshotTaskInputsOperationIntegrationTest.groovy

                additionalData.asMap == [
                    'typeName' : 'CustomTask',
                ]
            }
    
        }
    
        def "exposes file inputs, ignoring empty directories"() {
            given:
            withBuildCache()
            settingsFile << "include 'a', 'b'"
            createDir("a") {
                file("build.gradle") << "plugins { id 'java' }"
                dir("src/main/java") {
                    file("A.java") << "class A {}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformBuildOperationIntegrationTest.groovy

            when:
            withBuildCache().run ":consumer:resolve", "-DproducerContent=initial"
            then:
            executedAndNotSkipped(":consumer:resolve")
    
            outputDoesNotContain("processing [producer.jar]")
            checkExecuteTransformWorkOperations(getExecutePlannedStepOperations(1).first(), ["UP-TO-DATE"])
    
            when:
            withBuildCache().run ":consumer:resolve", "-DproducerContent=changed"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 16:27:38 UTC 2024
    - 67.8K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

            outputContains("outputFileCount = 2, inputFileCount = 3, inputValueCount = 1, nestedInputCount = 3, nestedInputValueCount = 1")
    
            when:
            inputFile.text = "changed"
            withBuildCache().succeeds("printCounts")
            then:
            executedAndNotSkipped(':myTask')
            outputContains("outputFileCount = 2, inputFileCount = 3, inputValueCount = 1, nestedInputCount = 3, nestedInputValueCount = 1")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

                }
                currentDirectory = currentDirectory.parentFile
                if (currentDirectory == null) {
                    break
                }
            }
        }
    
        AbstractIntegrationSpec withBuildCache() {
            executer.withBuildCacheEnabled()
            this
        }
    
        /**
         * Synonym for succeeds()
         */
        protected ExecutionResult run(String... tasks) {
            succeeds(*tasks)
    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