Basics for automated test.

This commit is contained in:
Michael Lipp 2023-08-19 15:22:31 +02:00
parent c006bd0a39
commit 6c98438fc5
9 changed files with 160 additions and 16 deletions

View file

@ -21,6 +21,8 @@ dependencies {
runtimeOnly 'com.electronwill.night-config:yaml:3.6.6'
runtimeOnly 'org.slf4j:slf4j-jdk14:[2.0.7,3)'
testImplementation 'io.fabric8:kubernetes-client:6.8.1'
}
application {
@ -75,3 +77,18 @@ task pushImages {
dependsOn pushLatestImage
}
test {
enabled = project.hasProperty("k8s.testCluster")
dependsOn project.tasks["pushImages"]
useJUnitPlatform()
testLogging {
showStandardStreams = true
}
systemProperty "k8s.testCluster", project.hasProperty("k8s.testCluster")
? project.getProperty("k8s.testCluster") : null
}