1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-09-01 09:53:53 +02:00

provide tasks to unit test, and describe them

gradle does not take the excludeTags and includeTags parameters
on the command line with gradle-6.8.3. provide tasks for it,
and describe better how to run particular unit tests.
This commit is contained in:
soloturn
2021-03-28 10:36:30 +02:00
parent ca1c78c491
commit 7f1ae26d9b
2 changed files with 41 additions and 23 deletions

View File

@@ -85,6 +85,24 @@ tasks.register<Test>("testAll") {
}
}
tasks.register<Test>("testFlaky") {
useJUnitPlatform {
includeTags("flaky")
}
}
tasks.register<Test>("testSlow") {
useJUnitPlatform {
includeTags("slow")
}
}
tasks.register<Test>("testTagged") {
useJUnitPlatform {
includeTags("any()")
}
}
// make all archive tasks in the build reproducible
tasks.withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false