Metadata-Version: 2.1
Name: nose2unitth
Version: 0.0.13
Summary: Convert nose-style test reports to UnitTH-style test reports
Home-page: https://github.com/KarrLab/nose2unitth
Author: Jonathan Karr
Author-email: jonrkarr@gmail.com
License: MIT
Download-URL: https://github.com/KarrLab/nose2unitth
Keywords: nose unitth xunit junit
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Provides-Extra: tests
Provides-Extra: docs
Provides-Extra: all
Requires-Dist: cement (>=3.0.0)
Requires-Dist: setuptools
Provides-Extra: all
Requires-Dist: mock; extra == 'all'
Requires-Dist: sphinx (>=1.8); extra == 'all'
Requires-Dist: sphinx-rtd-theme (>=0.4.2); extra == 'all'
Requires-Dist: sphinxcontrib-addmetahtml (>=0.1.1); extra == 'all'
Requires-Dist: sphinxcontrib-bibtex; extra == 'all'
Requires-Dist: sphinxcontrib-googleanalytics (>=0.1.1); extra == 'all'
Requires-Dist: sphinxcontrib-spelling; extra == 'all'
Requires-Dist: sphinxprettysearchresults; extra == 'all'
Provides-Extra: docs
Requires-Dist: sphinx (>=1.8); extra == 'docs'
Requires-Dist: sphinx-rtd-theme (>=0.4.2); extra == 'docs'
Requires-Dist: sphinxcontrib-addmetahtml (>=0.1.1); extra == 'docs'
Requires-Dist: sphinxcontrib-bibtex; extra == 'docs'
Requires-Dist: sphinxcontrib-googleanalytics (>=0.1.1); extra == 'docs'
Requires-Dist: sphinxcontrib-spelling; extra == 'docs'
Requires-Dist: sphinxprettysearchresults; extra == 'docs'
Provides-Extra: tests
Requires-Dist: mock; extra == 'tests'

|PyPI package| |Documentation| |Test results| |Test coverage| |Code
analysis| |License| |Analytics|

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

.. |PyPI package| image:: https://img.shields.io/pypi/v/nose2unitth.svg
   :target: https://pypi.python.org/pypi/nose2unitth
.. |Documentation| image:: https://readthedocs.org/projects/nose2unitth/badge/?version=latest
   :target: http://docs.karrlab.org/nose2unitth
.. |Test results| image:: https://circleci.com/gh/KarrLab/nose2unitth.svg?style=shield
   :target: https://circleci.com/gh/KarrLab/nose2unitth
.. |Test coverage| image:: https://coveralls.io/repos/github/KarrLab/nose2unitth/badge.svg
   :target: https://coveralls.io/github/KarrLab/nose2unitth
.. |Code analysis| image:: https://api.codeclimate.com/v1/badges/e3ee777af72076166232/maintainability
   :target: https://codeclimate.com/github/KarrLab/nose2unitth
.. |License| image:: https://img.shields.io/github/license/KarrLab/nose2unitth.svg
   :target: LICENSE
.. |Analytics| image:: https://ga-beacon.appspot.com/UA-86759801-1/nose2unitth/README.md?pixel



