feature/use-case-acceptance-tests-2 #117

Merged
hsh-michaelhoennig merged 38 commits from feature/use-case-acceptance-tests-2 into master 2024-11-05 13:58:39 +01:00
2 changed files with 26 additions and 3 deletions
Showing only changes of commit 80ce31270c - Show all commits

16
Jenkinsfile vendored
View File

@ -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

View File

@ -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.**']