Convert nose-style XML test reports to UnitTH-compatible XML reports
-
Latest release from PyPI
pip install nose2unitth
-
Latest revision from GitHub
pip install git+https://github.com/KarrLab/nose2unitth.git#egg=nose2unitth
# convert nose-style reports to UnitTH-style reports
nosetests <package-to-test> --with-xunit --xunit-file=examples/nose.xml
mkdir -p examples/unitth
nose2unitth examples/nose.xml examples/unitth/1
nose2unitth examples/nose.xml examples/unitth/2
junit2html examples/nose.xml examples/unitth/1/index.html
junit2html examples/nose.xml examples/unitth/2/index.html
# generate HTML test report
java \
-Dunitth.generate.exectimegraphs=true \
-Dunitth.xml.report.filter= \
-Dunitth.html.report.path=. \
-Dunitth.report.dir=examples/html \
-jar unitth.jar examples/unitth/*
Please see the documentation at Read the Docs.
nose
can be used to run the tests:
nosetests tests \
--with-xunit --xunit-file=test-report.xml \
--with-coverage --cover-package=nose2unitth
Please note that additional packages are required for testing (see tests/requirements.txt).
The example model is released under the MIT license.
nose2unitth
was developed by Jonathan Karr at the Icahn School of Medicine at Mount Sinai in New York, USA.
Please contact the Jonathan Karr with any questions or comments.