https://github.com/karrlab/nose2unitth
Convert nose-style test reports to UnitTH-style test reports
https://github.com/karrlab/nose2unitth
nose unit-testing unitth
Last synced: 8 months ago
JSON representation
Convert nose-style test reports to UnitTH-style test reports
- Host: GitHub
- URL: https://github.com/karrlab/nose2unitth
- Owner: KarrLab
- License: mit
- Created: 2016-07-27T22:25:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-06-26T19:42:00.000Z (over 5 years ago)
- Last Synced: 2025-05-16T13:08:59.891Z (9 months ago)
- Topics: nose, unit-testing, unitth
- Language: Python
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pypi.python.org/pypi/nose2unitth)
[](http://docs.karrlab.org/nose2unitth)
[](https://circleci.com/gh/KarrLab/nose2unitth)
[](https://coveralls.io/github/KarrLab/nose2unitth)
[](https://codeclimate.com/github/KarrLab/nose2unitth)
[](LICENSE)

# nose2unitth
Convert [nose](http://nose.readthedocs.io)-style XML test reports to [UnitTH](http://junitth.sourceforge.net/)-compatible XML reports
## Example
* [nose-style XML report](examples/nose.xml)
* [UnitTH-style XML report](examples/unitth/1)
* [UnitTH HTML test history report](https://cdn.rawgit.com/KarrLab/nose2unitth/master/examples/html/index.html)
## Installation
* Latest release from PyPI
```
pip install nose2unitth
```
* Latest revision from GitHub
```
pip install git+https://github.com/KarrLab/nose2unitth.git#egg=nose2unitth
```
## Usage
```
# convert nose-style reports to UnitTH-style reports
nosetests --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/*
```
## Documentation
Please see the documentation at [Read the Docs](http://docs.karrlab.org/nose2unitth).
## Tests
### Running the tests
`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](tests/requirements.txt)).
## License
The example model is released under the [MIT license](LICENSE).
## Development team
`nose2unitth` was developed by [Jonathan Karr](http://www.karrlab.org) at the Icahn School of Medicine at Mount Sinai in New York, USA.
## Questions and comments
Please contact the [Jonathan Karr](http://www.karrlab.org) with any questions or comments.