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 { steps {
sh """ sh ''' source activate ${BUILD_TAG}
#. venv/bin/activate python -m pytest --verbose --junit-xml results.xml
export PATH=${VIRTUAL_ENV}/bin:${PATH} '''
cd PyBitmessage
touch *.xml
make unittest || true
"""
} }
post { post {
always { always {
junit keepLongStdio: true, testResults: 'nosetests.xml' // Archive unit tests for the future
publishHTML target: [ junit allowEmptyResults: true, testResults: 'results.xml', fingerprint: true
reportDir: 'PyBitmessage',
reportFiles: 'index.html',
reportName: 'Coverage Report - Unit Test'
]
} }
} }
} }