mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-01-17 12:48:24 +01:00
gradle, not execute slow tests by default
```gradle slowTests``` will execute only the tests with tag slow.
This commit is contained in:
parent
7ad1df97c0
commit
8f17f95222
@ -62,12 +62,20 @@ tasks.withType<JavaCompile> {
|
|||||||
|
|
||||||
tasks.test {
|
tasks.test {
|
||||||
useJUnitPlatform {
|
useJUnitPlatform {
|
||||||
|
// gradle-6.5.1 not yet allows passing this as parameter, so exclude it
|
||||||
|
excludeTags("slow")
|
||||||
includeEngines("junit-jupiter")
|
includeEngines("junit-jupiter")
|
||||||
includeEngines("junit-vintage")
|
includeEngines("junit-vintage")
|
||||||
}
|
}
|
||||||
finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run
|
finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.register<Test>("slowTests") {
|
||||||
|
useJUnitPlatform {
|
||||||
|
includeTags("slow")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// make all archive tasks in the build reproducible
|
// make all archive tasks in the build reproducible
|
||||||
tasks.withType<AbstractArchiveTask>().configureEach {
|
tasks.withType<AbstractArchiveTask>().configureEach {
|
||||||
isPreserveFileTimestamps = false
|
isPreserveFileTimestamps = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user