Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for assertStateLoaded (0.32 sec)

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

            when:
            configurationCacheRun()
    
            then:
            outputContains("CI = null")
    
            when:
            configurationCacheRun()
    
            then:
            configurationCache.assertStateLoaded()
            noExceptionThrown()
    
            when:
            mechanism.setup(this)
            configurationCacheRun(*mechanism.gradleArgs)
    
            then:
            problems.assertResultHasProblems(result) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 36K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingModelsWithDependencyResolutionIntegrationTest.groovy

            model2[1].message == "project :b classpath = 1"
            model2[2].message == "project :c classpath = 0"
            model2[3].message == "project :d classpath = 0"
    
            and:
            fixture.assertStateLoaded()
    
            when:
            file("a/build.gradle") << """
                // some change
            """
            executer.withArguments(ENABLE_CLI)
            def model3 = runBuildAction(new FetchCustomModelForEachProject())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiPhasedBuildActionIntegrationTest.groovy

            def model2 = models2.right
            model2.size() == 2
            model2[0].message == "It works from project :"
            model2[1].message == "It works from project :a"
    
            and:
            fixture.assertStateLoaded()
            outputDoesNotContain("creating model")
    
            when:
            buildFile << """
                // some change
            """
    
            executer.withArguments(ENABLE_CLI)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  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/ConfigurationCacheMavenPublishIntegrationTest.groovy

            configurationCacheRun(*(projectConfig.tasks))
            server.resetExpectations()
    
            then:
            configurationCache.assertStateLoaded()
            def loadTimeRepo = mavenRepoFiles()
            storeTimeRepo == loadTimeRepo
            def loadTimeMetadata = metadataFile.text
            storeTimeMetadata == loadTimeMetadata
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiIdeaProjectIntegrationTest.groovy

            }
    
            then:
            ideaModel.name == "root"
    
            when:
            executer.withArguments(ENABLE_CLI)
            fetchModel(IdeaProject)
    
            then:
            fixture.assertStateLoaded()
        }
    
        def "can fetch BasicIdeaProject model for root and re-fetch cached"() {
            settingsFile << """
                rootProject.name = 'root'
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiParallelConfigurationIntegrationTest.groovy

            model2[0].message == "It works from project :"
            model2[1].message == "It works from project :a"
            model2[2].message == "It works from project :b"
    
            and:
            fixture.assertStateLoaded()
    
            when:
            file("a/build.gradle") << """
                myExtension.message = 'this is project a'
            """
            file("b/build.gradle") << """
                myExtension.message = 'this is project b'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top