Unverified Commit 33c9bfac authored by daz's avatar daz
Browse files

Fix test for dependency graph with configuration cache

parent 97d9c134
Loading
Loading
Loading
Loading
+3 −3
Changes for test/init-scripts/src/test/groovy/com/gradle/gradlebuildaction/TestDependencyGraph.groovy: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -32,20 +32,20 @@ class TestDependencyGraph extends BaseInitScriptTest {
        assert gitHubOutputFile.text == "dependency-graph-file=${reportFile.absolutePath}\n"

        where:
        testGradleVersion << GRADLE_8_X
        testGradleVersion << [GRADLE_8_X]
    }

    // Dependency-graph plugin doesn't support config-cache for 8.0 of Gradle
    def "produces dependency graph with configuration-cache on latest Gradle"() {
        assumeTrue testGradleVersion.compatibleWithCurrentJvm

        when:
        run(['help'], initScript, testGradleVersion.gradleVersion, [], envVars)
        run(['help', '--configuration-cache'], initScript, testGradleVersion.gradleVersion, [], envVars)

        then:
        assert reportFile.exists()

        where:
        // Dependency-graph plugin doesn't support config-cache for 8.0 of Gradle
        testGradleVersion << [GRADLE_8_X]
    }