Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 76 for assertStateLoaded (0.22 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheIncludedBuildLogicIntegrationTest.groovy

                ":assemble")
            fixture.assertStateStored()
    
            when:
            configurationCacheRun("assemble")
    
            then:
            result.assertTasksExecuted(":assemble")
            fixture.assertStateLoaded()
    
            when:
            pluginSourceFile << """
                // some change
            """
            configurationCacheRun("assemble")
    
            then:
            result.assertTasksExecuted(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheIvyPublishIntegrationTest.groovy

            then:
            configurationCache.assertStateStored()
    
            when:
            configurationCacheRun("generateDescriptorFileForIvyPublication")
    
            then:
            configurationCache.assertStateLoaded()
        }
    
        def "can execute generateMetadataFileForIvyPublication"() {
            def configurationCache = newConfigurationCacheFixture()
            buildConfigurationWithIvyRepository(ivyRepo, "ivyRepo","")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFlowScopeIntegrationTest.groovy

            outputContains '(green)'
    
            when: 'task from cache runs successfully'
            configurationCacheRun 'help'
    
            then: 'flow action reacts to build result'
            configCache.assertStateLoaded()
            outputContains '(green)'
    
            when: 'task fails'
            buildFile '''
                tasks.register('fail') {
                    doLast { assert false }
                }
            '''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiCompositeBuildsIntegrationTest.groovy

            then:
            model2.size() == 2
            model2[0].message == "It works from project :"
            model2[1].message == "It works from project :a"
    
            and:
            fixture.assertStateLoaded()
    
            when:
            file("buildSrc/src/main/groovy/Thing.java") << """
                // change source
                class Thing { }
            """
    
            executer.withArguments(ENABLE_CLI)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildProfileIntegrationTest.groovy

            def report = findReport()
    
            and:
            report.delete()
    
            when:
            configurationCacheRun(":help", "--profile")
    
            then:
            configurationCache.assertStateLoaded()
            findReport()
        }
    
        @Issue("https://github.com/gradle/gradle/issues/18386")
        def "can profile a composite build with cc enabled"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiCoupledProjectsIntegrationTest.groovy

            then:
            model2.size() == 3
            model2[0].message == "project a"
            model2[1].message == "project b"
            model2[2].message == "It works from project :c"
    
            and:
            fixture.assertStateLoaded()
    
            when:
            file("build.gradle") << """
                project(":a") {
                    afterEvaluate {
                        myExtension.message = "new project a"
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/configurationcache/ConfigurationCacheFixture.groovy

         */
        void assertStateLoaded() {
            assertStateLoaded(new LoadDetails())
            assertHasWarningThatIncubatingFeatureUsed()
        }
    
        void assertStateLoaded(LoadDetails details) {
            assertLoadLogged()
            spec.postBuildOutputContains("Configuration cache entry ${details.storeAction}.")
    
            configurationCacheBuildOperations.assertStateLoaded()
    
            assertNothingConfigured()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiGradleProjectIntegrationTest.groovy

            when: "fetching again with Isolated Projects"
            executer.withArguments(ENABLE_CLI)
            fetchModel(GradleProject)
    
            then:
            fixture.assertStateLoaded()
        }
    
        def "can fetch GradleProject model without tasks"() {
            settingsFile << """
                rootProject.name = 'root'
    
                include(":lib1")
            """
    
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheRemoteBuildScriptIntegrationTest.groovy

            and:
            server.expectHead "/$scriptName", scriptFile
    
            when:
            configurationCacheRun 'ok'
    
            then:
            configurationCache.assertStateLoaded()
        }
    
        def "reuse cache for offline build"() {
            when:
            configurationCacheRun 'ok'
    
            then:
            configurationCache.assertStateStored()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiStreamingBuildActionIntegrationTest.groovy

            when:
            withIsolatedProjects()
            def model2 = runBuildAction(new ModelStreamingBuildAction()) {
                setStreamedValueListener(listener2)
            }
    
            then:
            fixture.assertStateLoaded()
    
            and:
            model2.value == 42
    
            and:
            def streamedModels2 = listener2.models
            streamedModels2.size() == 2
            (streamedModels2[0] as GradleProject).name == "hello-world"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top