Prevented some tests from being repeated on CI

This commit is contained in:
Erik C. Thauvin 2023-03-25 23:08:08 -07:00
parent 0ca9f5b9f8
commit 20f8aef5c6
4 changed files with 21 additions and 2 deletions

View file

@ -58,18 +58,29 @@ pmd {
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
test {
val apiKey = project.properties["testsBadgeApiKey"]
useJUnitPlatform()
useJUnitPlatform {
if (System.getenv("NO_CI") != null) {
excludeTags("no-ci")
println("Excluded test tags: $excludeTags")
}
}
testLogging {
exceptionFormat = TestExceptionFormat.FULL
events = setOf(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
showStandardStreams = true
}
addTestListener(object : TestListener {
override fun beforeTest(p0: TestDescriptor?) = Unit
override fun beforeSuite(p0: TestDescriptor?) = Unit