diff --git a/Jenkinsfile b/Jenkinsfile index f0377b6e..8cba64d2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -187,13 +187,14 @@ pipeline { stage('Unit tests') { steps { sh ''' export PATH=${VIRTUAL_ENV}/bin:${PATH} + pip install pytest python -m pytest --verbose --junit-xml results.xml ''' } post { always { // Archive unit tests for the future - junit allowEmptyResults: true, testResults: 'test-reports/results.xml' + junit allowEmptyResults: true, testResults: 'results.xml' } } } diff --git a/requirements.txt b/requirements.txt index c4803384..5429dce1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ pycrypto nose radon coverage +pytest diff --git a/result.xml b/results.xml similarity index 100% rename from result.xml rename to results.xml