From 912810825175aa0d376816aac00b15d497b76a83 Mon Sep 17 00:00:00 2001 From: sidpremkumar Date: Jul 09 2019 17:25:43 +0000 Subject: changing xunit-tests from json to xml --- diff --git a/openshift/sync2jira-dev-pipeline-template.yml b/openshift/sync2jira-dev-pipeline-template.yml index 201dbbf..040d727 100644 --- a/openshift/sync2jira-dev-pipeline-template.yml +++ b/openshift/sync2jira-dev-pipeline-template.yml @@ -221,11 +221,11 @@ objects: stage('Run unit tests') { steps { // run unit tests - sh 'tox --result-json=xunit-tests.json' + sh 'tox' } post { always { - junit 'xunit-tests.json' + junit 'xunit-tests.xml' } } } diff --git a/tox.ini b/tox.ini index 535b6ec..443c0d1 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ deps = nose sitepackages = False commands = - pytest {posargs} + pytest {posargs} --junitxml=xunit-tests.xml [testenv:flake8] basepython = python3