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] (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.6.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

nose2unitth-0.0.6-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: nose2unitth-0.0.6.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nose2unitth-0.0.6.tar.gz
Algorithm Hash digest
SHA256 4b1577729e49ff138172ceaaa6ae1b42f2a8ed935e7e731e8b2e4412ec5307ee
MD5 89e067a2ae2450214879b4ff5188e3eb
BLAKE2b-256 bbd4a77df8a765980d8e6a1cd3de2a9b66c372e359383e57514b5b3782d44539

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nose2unitth-0.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ca026d45ba315269ea445e2bf2042e1e1d4644b321422ca1567b7a20ea8c071e
MD5 0d19d0bec19e3b06247025ad532818d8
BLAKE2b-256 9a3727a60e58cfc0720629e93ec647f09215894078d93d0249dbe9f2edf8f72d

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