nose2unitth documentation¶
Convert nose-style XML test reports to UnitTH-compatible XML reports
Contents¶
Installation¶
Prerequisites¶
- Python
- Pip
Latest release From PyPI¶
Run the following command to install the latest release from PyPI:
pip install nose2unitth
Latest revision from GitHub¶
Run the following command to install the latest version from GitHub:
pip install git+https://github.com/KarrLab/nose2unitth.git#egg=nose2unitth
Example inputs and outputs¶
Command line usage¶
# 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/*
Testing the package¶
nose can be used to run the tests:
nosetests tests \
--with-xunit --xunit-file=test-report.xml \
--with-coverage --cover-package=nose2unitth
About¶
License¶
The software is released under the MIT license
The MIT License (MIT)
Copyright (c) 2016 Karr Lab
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Development team¶
This package was developed by the Karr Lab at the Icahn School of Medicine at Mount Sinai in New York, USA.
Acknowledgements¶
This work was supported by a National Institute of Health MIRA award [grant number 1 R35 GM 119771-01].