aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle15
1 files changed, 11 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index 6c41fc2..665835c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -14,6 +14,7 @@ dependencies
def junit5Group = 'org.junit.jupiter'
def junit5Version = '5.8.2'
testImplementation group: junit5Group, name: 'junit-jupiter-api', version: junit5Version
+ testImplementation group: 'net.jqwik', name: 'jqwik', version: '1.6.3'
testRuntimeOnly group: junit5Group, name: 'junit-jupiter-engine', version: junit5Version
testRuntimeOnly group: 'org.junit.platform', name: 'junit-platform-console', version: junit5Version
testImplementation(enforcedPlatform("org.junit:junit-bom:${junit5Version}"))
@@ -62,7 +63,7 @@ tasks.register('consoleLauncher', JavaExec)
mainClass = 'org.junit.platform.console.ConsoleLauncher'
outputs.dir reportsDir
classpath sourceSets.test.runtimeClasspath + sourceSets.functionalTest.runtimeClasspath
- args '--scan-classpath', '--details', 'tree', '--reports-dir', reportsDir.get()
+ args '--scan-classpath', '--details', 'summary', '--reports-dir', reportsDir.get()
}
tasks.register('functionalTest', Test)
@@ -74,10 +75,16 @@ tasks.register('functionalTest', Test)
shouldRunAfter test
}
-check.dependsOn functionalTest
+check.dependsOn consoleLauncher
tasks.withType(Test).configureEach
{
- useJUnitPlatform()
- maxParallelForks 6
+ useJUnitPlatform
+ {
+ includeEngines 'jqwik', 'junit-jupiter'
+ maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
+ }
+ filter {
+ includeTestsMatching "*FunctionalTest"
+ }
}