chage in unit test

This commit is contained in:
shikhar.s 2019-08-30 13:39:47 +05:30
parent e9a5fe278d
commit c7a4876e06

30
Jenkinsfile vendored
View File

@ -184,21 +184,21 @@ pipeline {
} }
} }
stage('Unit tests') { // stage('Unit tests') {
steps { // steps {
sh ''' export PATH=${VIRTUAL_ENV}/bin:${PATH} // sh ''' export PATH=${VIRTUAL_ENV}/bin:${PATH}
pip install pytest // pip install pytest
pip install psutil // pip install psutil
python -m pytest --verbose --junit-xml results.xml // python -m pytest --verbose --junit-xml results.xml
''' // '''
} // }
post { // post {
always { // always {
// Archive unit tests for the future // // Archive unit tests for the future
junit allowEmptyResults: true, testResults: 'results.xml' // junit allowEmptyResults: true, testResults: 'results.xml'
} // }
} // }
} // }
// stage('Unit tests') { // stage('Unit tests') {
// steps { // steps {
// sh ''' source activate ${BUILD_TAG} // sh ''' source activate ${BUILD_TAG}