Skip to main content

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

Project description

PyPI package Documentation Test results Test coverage License

nose2unitth

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

Example

Installation

pip install 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.

Source Distribution

nose2unitth-0.0.10.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

nose2unitth-0.0.10-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nose2unitth-0.0.10.tar.gz.

File metadata

File hashes

Hashes for nose2unitth-0.0.10.tar.gz
Algorithm Hash digest
SHA256 eded6192f1544b1517dff989c2cb23ec2edecf8fb5d63fa36500639b6e83ec1a
MD5 d8e5744d6ad49a66c21de8285d9945e4
BLAKE2b-256 a55c7934ed21b4fe99561879f41964d4dee757321ec65ebe6ea919cd1095890b

See more details on using hashes here.

File details

Details for the file nose2unitth-0.0.10-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for nose2unitth-0.0.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8decb241da0e0c8fe26779ea79dfd359af4a1c59acf3d9be8c580a3a5cb11132
MD5 c969bce55201957b114ada6b40b599ca
BLAKE2b-256 0d9d2efe819aaa63d5cdf04d74490ec1375d1f06369512973e2bf136318ac15c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page