-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.test.gradle
37 lines (31 loc) · 951 Bytes
/
build.test.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
test {
// Always run the tests
outputs.upToDateWhen { false }
// Turn on some console logging
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
stackTraceFilters "entryPoint"
}
useJUnitPlatform {
includeTags 'fast', 'smoke & feature-a'
// excludeTags 'slow', 'ci'
includeEngines 'junit-jupiter'
// excludeEngines 'junit-vintage'
}
}
// Write the plugin's classpath to a file to share with the tests
task createClasspathManifest {
group = "build"
def outputDir = file("$buildDir/$name")
inputs.files sourceSets.main.runtimeClasspath
outputs.dir outputDir
doLast {
outputDir.mkdirs()
file("$outputDir/plugin-classpath.txt").text = sourceSets.main.runtimeClasspath.join("\n")
}
}
// Add the classpath file to the test runtime classpath
dependencies {
testRuntime files(createClasspathManifest)
}