feature/use-case-acceptance-tests-2 #117
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@ -28,7 +28,19 @@ pipeline {
|
|||||||
|
|
||||||
stage ('Compile & Test') {
|
stage ('Compile & Test') {
|
||||||
steps {
|
steps {
|
||||||
sh './gradlew clean check --no-daemon -x pitest -x dependencyCheckAnalyze'
|
sh './gradlew clean check --no-daemon -x pitest -x dependencyCheckAnalyze -x importOfficeData -x importHostingAssets'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage ('Import-Tests') {
|
||||||
|
steps {
|
||||||
|
sh './gradlew importOfficeData importHostingAssets'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage ('Scenario-Tests') {
|
||||||
|
steps {
|
||||||
|
sh './gradlew scenrioTests'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -47,7 +59,7 @@ pipeline {
|
|||||||
|
|
||||||
// archive scenario-test reports in HTML format
|
// archive scenario-test reports in HTML format
|
||||||
sh '''
|
sh '''
|
||||||
gw convertMarkdownToHtml
|
./gradlew convertMarkdownToHtml
|
||||||
'''
|
'''
|
||||||
archiveArtifacts artifacts: 'doc/scenarios/*.html', allowEmptyArchive: true
|
archiveArtifacts artifacts: 'doc/scenarios/*.html', allowEmptyArchive: true
|
||||||
|
|
||||||
|
13
build.gradle
13
build.gradle
@ -255,7 +255,7 @@ test {
|
|||||||
'net.hostsharing.hsadminng.**.generated.**',
|
'net.hostsharing.hsadminng.**.generated.**',
|
||||||
]
|
]
|
||||||
useJUnitPlatform {
|
useJUnitPlatform {
|
||||||
excludeTags 'import'
|
excludeTags 'importOfficeData', 'importHostingData', 'scenarioTest'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
jacocoTestReport {
|
jacocoTestReport {
|
||||||
@ -344,6 +344,17 @@ tasks.register('importHostingAssets', Test) {
|
|||||||
mustRunAfter spotlessJava
|
mustRunAfter spotlessJava
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.register('scenarioTests', Test) {
|
||||||
|
useJUnitPlatform {
|
||||||
|
includeTags 'scenarioTest'
|
||||||
|
}
|
||||||
|
|
||||||
|
group 'verification'
|
||||||
|
description 'run the import jobs as tests'
|
||||||
|
|
||||||
|
mustRunAfter spotlessJava
|
||||||
|
}
|
||||||
|
|
||||||
// pitest mutation testing
|
// pitest mutation testing
|
||||||
pitest {
|
pitest {
|
||||||
targetClasses = ['net.hostsharing.hsadminng.**']
|
targetClasses = ['net.hostsharing.hsadminng.**']
|
||||||
|
Loading…
Reference in New Issue
Block a user