Basics for automated test.
This commit is contained in:
parent
c006bd0a39
commit
6c98438fc5
9 changed files with 160 additions and 16 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue