mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-01-17 04:38:18 +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 {
|
||||
useJUnitPlatform {
|
||||
// gradle-6.5.1 not yet allows passing this as parameter, so exclude it
|
||||
excludeTags("slow")
|
||||
includeEngines("junit-jupiter")
|
||||
includeEngines("junit-vintage")
|
||||
}
|
||||
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
|
||||
tasks.withType<AbstractArchiveTask>().configureEach {
|
||||
isPreserveFileTimestamps = false
|
||||
|
Loading…
x
Reference in New Issue
Block a user