chage in unit test

This commit is contained in:
shikhar.s 2019-08-29 15:44:32 +05:30
parent 32fdc5c2b3
commit 28b9a6c241
2 changed files with 6 additions and 15 deletions

21
Jenkinsfile vendored
View File

@ -184,25 +184,16 @@ pipeline {
}
}
stage ('Unit Tests') {
stage('Unit tests') {
steps {
sh """
#. venv/bin/activate
export PATH=${VIRTUAL_ENV}/bin:${PATH}
cd PyBitmessage
touch *.xml
make unittest || true
"""
sh ''' source activate ${BUILD_TAG}
python -m pytest --verbose --junit-xml results.xml
'''
}
post {
always {
junit keepLongStdio: true, testResults: 'nosetests.xml'
publishHTML target: [
reportDir: 'PyBitmessage',
reportFiles: 'index.html',
reportName: 'Coverage Report - Unit Test'
]
// Archive unit tests for the future
junit allowEmptyResults: true, testResults: 'results.xml', fingerprint: true
}
}
}