Skip to content

Commit

Permalink
Add @NotYetImplemented test for minimize() & configuration cache
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Merlin <[email protected]>
  • Loading branch information
eskatos committed Sep 11, 2020
1 parent 7653ea9 commit 1cc82aa
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.jengelman.gradle.plugins.shadow

import com.github.jengelman.gradle.plugins.shadow.util.PluginSpecification
import groovy.transform.NotYetImplemented
import org.gradle.util.GradleVersion
import spock.lang.IgnoreIf

Expand Down Expand Up @@ -84,4 +85,26 @@ class ConfigurationCacheSpec extends PluginSpecification {
doesNotContain(output, ['a2.properties'])
result.output.contains("Reusing configuration cache.")
}

@NotYetImplemented
def "configuration caching supports minimize"() {
given:
buildFile << """
shadowJar {
minimize()
}
""".stripIndent()

when:
runner.withArguments('--configuration-cache', 'shadowJar').build()
output.delete()
def result = runner.withArguments('--configuration-cache', 'shadowJar').build()

then:
contains(output, ['a.properties', 'b.properties'])

and:
doesNotContain(output, ['a2.properties'])
result.output.contains("Reusing configuration cache.")
}
}

0 comments on commit 1cc82aa

Please sign in to comment.