Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/groovy/nebula/test/IntegrationBase.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ abstract trait IntegrationBase {
LogLevel logLevel = LogLevel.LIFECYCLE
List<File> initScripts = []
boolean parallelEnabled = false
boolean buildCacheEnabled = false

private static final String LOGGING_LEVEL_ENV_VARIABLE = "NEBULA_TEST_LOGGING_LEVEL"

Expand Down Expand Up @@ -209,6 +210,7 @@ abstract trait IntegrationBase {
if (parallelEnabled) {
arguments += '--parallel'
}
arguments += "-Dorg.gradle.caching=$buildCacheEnabled".toString()
arguments += '--stacktrace'
arguments += '-Dorg.gradle.warning.mode=all'
arguments.addAll(args)
Expand Down
6 changes: 6 additions & 0 deletions src/test/groovy/nebula/test/IntegrationTestKitSpecSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,10 @@ class IntegrationTestKitSpecSpec extends IntegrationTestKitSpec {
dependencies(buildFile, 'testImplementation') == ['testjava:c:0.1.0']
dependencies(buildFile) == ['testjava:a:0.1.0', 'testjava:b:0.1.0', 'testjava:c:0.1.0']
}

def 'build caching is disabled by default'() {
expect:
calculateArguments().contains('-Dorg.gradle.caching=false')
}

}