mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-06 13:56:34 +02:00
gradle, not execute slow tests by default
```gradle slowTests``` will execute only the tests with tag slow.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user