Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 76 for assertStateLoaded (0.47 sec)

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

            then:
            fixture.assertStateStored {
                projectConfigured(":")
            }
    
            when:
            isolatedProjectsRun("thing")
    
            then:
            fixture.assertStateLoaded()
        }
    
        def "cannot disable configuration cache when option is enabled"() {
            buildFile """
                println "configuring project"
                task thing { }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheScriptChangesIntegrationTest.groovy

            when:
            build()
    
            then: 'scripts are not executed when loading from cache'
            outputDoesNotContain fixture.expectedOutputBeforeChange
            configurationCache.assertStateLoaded()
    
            when:
            fixture.applyChange()
            build()
    
            then:
            outputContains fixture.expectedCacheInvalidationMessage
            outputContains fixture.expectedOutputAfterChange
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheEnablementIntegrationTest.groovy

            when:
            run 'help', argument
    
            then:
            fixture.assertStateStored()
    
            when:
            run 'help', argument
    
            then:
            fixture.assertStateLoaded()
    
            where:
            origin            | argument
            "long option"     | ENABLE_CLI_OPT
            "system property" | ENABLE_SYS_PROP
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. 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)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheGroovyIntegrationTest.groovy

            assertTestsExecuted("ThingTest", "ok")
    
            when:
            configurationCacheRun "clean"
    
            and:
            configurationCacheRun "build"
    
            then:
            configurationCache.assertStateLoaded()
            result.assertTasksExecuted(*expectedTasks)
    
            and:
            classFile.isFile()
            testClassFile.isFile()
            testResults.isDirectory()
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildSrcChangesIntegrationTest.groovy

            when:
            configurationCacheRun changeFixture.task
    
            then:
            outputContains changeFixture.expectedOutputAfterChange
            configurationCache.assertStateLoaded()
    
            where:
            changeFixtureSpec << BuildLogicChangeFixture.specs()
        }
    
        def "invalidates cache upon change to #inputName used by buildSrc"() {
    
            assumeFalse(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDirIntegrationTest.groovy

            and:
            configurationCache.assertStateStored()
    
            when:
            configurationCacheRun 'help', '--project-cache-dir', 'custom-cache-dir'
    
            then:
            configurationCache.assertStateLoaded()
        }
    
        def "configuration cache honours org.gradle.projectcachedir"() {
            given:
            def configurationCache = newConfigurationCacheFixture()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheIncludedBuildScriptChangesIntegrationTest.groovy

            when:
            build()
    
            then: 'scripts are not executed when loading from cache'
            outputDoesNotContain fixture.expectedOutputBeforeChange
            configurationCache.assertStateLoaded()
    
            when:
            fixture.applyChange()
            build()
    
            then:
            outputContains fixture.expectedCacheInvalidationMessage
            outputContains fixture.expectedOutputAfterChange
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top