How to combine test results with two different media?

I need to run nosetests on 2 packages separately. For instance:

nosetests --with-xunit --xunit-file=sample.xml test_sample.py

and

nosetests --with-xunit --xunit-file=sample1.xml test_sample1.py

Now, how can I combine sample.xml and sample1.xml files?

Is there any team for this? I need a combined test result file in xml so that I can use this file in jenkins configuration.

+4
source share
2 answers

You can get some test results ( sample.xmland sample1.xml) in the jenkins. Just set Publish JUnit test result report\Test report XMLsto select all xml reports with **/*.xmland generate your XML result in your workspace, for example:

nosetests --with-xunit --xunit-file=%WORKSPACE%\\sample.xml test_sample.py
nosetests --with-xunit --xunit-file=%WORKSPACE%\\sample1.xml test_sample1.py
+6
source

xunitmerge .

xunitmerge sample.xml sample1.xml merged.xml
+2

Source: https://habr.com/ru/post/1529127/


All Articles