Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Convert nose-style test reports to UnitTH-style test reports

Project description

PyPI package Documentation Test results Test coverage Code analysis License Analytics

nose2unitth

Convert nose-style XML test reports to UnitTH-compatible XML reports

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 <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/*

Documentation

Please see the documentation at Read the Docs.

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).

License

The example model is released under the MIT license.

Development team

nose2unitth was developed by Jonathan Karr at the Icahn School of Medicine at Mount Sinai in New York, USA.

Questions and comments

Please contact the Jonathan Karr with any questions or comments.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nose2unitth, version 0.0.13
Filename, size File type Python version Upload date Hashes
Filename, size nose2unitth-0.0.13-py2.py3-none-any.whl (5.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size nose2unitth-0.0.13.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page