Add allure report for module tests
This commit is contained in:
parent
bcc7f83ef8
commit
30db5120f1
1 changed files with 11 additions and 1 deletions
12
tests/modules/Jenkinsfile
vendored
12
tests/modules/Jenkinsfile
vendored
|
@ -23,7 +23,12 @@ def runTests() {
|
||||||
}
|
}
|
||||||
stage ('Run tests') {
|
stage ('Run tests') {
|
||||||
withCredentials([string(credentialsId: 'proxymap', variable: 'PROXYMAP')]) {
|
withCredentials([string(credentialsId: 'proxymap', variable: 'PROXYMAP')]) {
|
||||||
sh "TESTALL=1 py.test -v --cov=dosagelib --cov-report xml --tb=short -n10 --junitxml=junit.xml tests/modules/check_comics.py || true"
|
sh '''
|
||||||
|
TESTALL=1 py.test -v --cov=dosagelib --cov-report xml \
|
||||||
|
--alluredir=allure-data \
|
||||||
|
--tb=short -n10 --junitxml=junit.xml \
|
||||||
|
tests/modules/check_comics.py || true
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Report') {
|
stage('Report') {
|
||||||
|
@ -43,6 +48,11 @@ ansiColor('xterm') {
|
||||||
img.inside {
|
img.inside {
|
||||||
runTests()
|
runTests()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Allure Report') {
|
||||||
|
sh 'docker run --rm -v $PWD:/work tobix/allure-cli generate allure-data'
|
||||||
|
publishHTML reportDir: 'allure-report', reportFiles: 'index.html', reportName: 'Allure Report'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue