Prevented some tests from being repeated on CI
This commit is contained in:
parent
0ca9f5b9f8
commit
20f8aef5c6
4 changed files with 21 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
package rife.render;
|
||||
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import rife.template.TemplateFactory;
|
||||
|
||||
|
@ -70,6 +71,7 @@ class TestFormat {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Tag("no-ci")
|
||||
void testQrCode() {
|
||||
var t = TemplateFactory.SVG.get("qrCode");
|
||||
var foo = "https://example.com/";
|
||||
|
@ -78,6 +80,7 @@ class TestFormat {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Tag("no-ci")
|
||||
void testShortenUrl() {
|
||||
var t = TemplateFactory.HTML.get("shortenUrl");
|
||||
var url = "https://example.com/";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue