html-testRunner


Namehtml-testRunner JSON
Version 1.2.1 PyPI version JSON
download
home_pagehttps://github.com/oldani/HtmlTestRunner
SummaryA Test Runner in python, for Human Readable HTML Reports
upload_time2019-09-09 02:12:54
maintainer
docs_urlNone
authorOrdanis Sanchez Suero
requires_python
licenseMIT license
keywords htmltestrunner testrunner html reports
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            
===============================
HtmlTestRunner
===============================


.. image:: https://img.shields.io/pypi/v/html-testRunner.svg
        :target: https://pypi.python.org/pypi/html-testRunner

.. image:: https://img.shields.io/travis/oldani/HtmlTestRunner.svg
        :target: https://travis-ci.org/oldani/HtmlTestRunner



HtmlTest runner is a unittest test runner that save test results
in Html files, for human readable presentation of results.

This Package was inspired in ``unittest-xml-reporting`` and
``HtmlTestRunner by tungwaiyip``.

Usage:
--------------

.. code-block:: python

    import HtmlTestRunner
    import unittest


    class TestStringMethods(unittest.TestCase):

        def test_upper(self):
            self.assertEqual('foo'.upper(), 'FOO')

        def test_error(self):
            """ This test should be marked as error one. """
            raise ValueError

        def test_fail(self):
            """ This test should fail. """
            self.assertEqual(1, 2)

        @unittest.skip("This is a skipped test.")
        def test_skip(self):
            """ This test should be skipped. """
            pass

    if __name__ == '__main__':
        unittest.main(testRunner=HtmlTestRunner.HTMLTestRunner(output='example_dir'))

As simple as import the class an initialize it, it only have one request
parameter that is output, this one is use to place the report in a sub
direcotry in ``reports`` directory.

Links:
---------

* `Github <https://github.com/oldani/HtmlTestRunner>`_



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/oldani/HtmlTestRunner",
    "name": "html-testRunner",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "HtmlTestRunner TestRunner Html Reports",
    "author": "Ordanis Sanchez Suero",
    "author_email": "ordanisanchez@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/5d/5b/7844d6e6e9d072f38666fb332fc85aaa7ebed99b2f792c724d8a85282254/html-testRunner-1.2.1.tar.gz",
    "platform": "",
    "description": "\n===============================\nHtmlTestRunner\n===============================\n\n\n.. image:: https://img.shields.io/pypi/v/html-testRunner.svg\n        :target: https://pypi.python.org/pypi/html-testRunner\n\n.. image:: https://img.shields.io/travis/oldani/HtmlTestRunner.svg\n        :target: https://travis-ci.org/oldani/HtmlTestRunner\n\n\n\nHtmlTest runner is a unittest test runner that save test results\nin Html files, for human readable presentation of results.\n\nThis Package was inspired in ``unittest-xml-reporting`` and\n``HtmlTestRunner by tungwaiyip``.\n\nUsage:\n--------------\n\n.. code-block:: python\n\n    import HtmlTestRunner\n    import unittest\n\n\n    class TestStringMethods(unittest.TestCase):\n\n        def test_upper(self):\n            self.assertEqual('foo'.upper(), 'FOO')\n\n        def test_error(self):\n            \"\"\" This test should be marked as error one. \"\"\"\n            raise ValueError\n\n        def test_fail(self):\n            \"\"\" This test should fail. \"\"\"\n            self.assertEqual(1, 2)\n\n        @unittest.skip(\"This is a skipped test.\")\n        def test_skip(self):\n            \"\"\" This test should be skipped. \"\"\"\n            pass\n\n    if __name__ == '__main__':\n        unittest.main(testRunner=HtmlTestRunner.HTMLTestRunner(output='example_dir'))\n\nAs simple as import the class an initialize it, it only have one request\nparameter that is output, this one is use to place the report in a sub\ndirecotry in ``reports`` directory.\n\nLinks:\n---------\n\n* `Github <https://github.com/oldani/HtmlTestRunner>`_\n\n\n",
    "bugtrack_url": null,
    "license": "MIT license",
    "summary": "A Test Runner in python, for Human Readable HTML Reports",
    "version": "1.2.1",
    "split_keywords": [
        "htmltestrunner",
        "testrunner",
        "html",
        "reports"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "ee23b5b14410f9869d3ee2d4d3344852",
                "sha256": "57190df7b33788a148ff793cbcd1495ef51e265f8954e1d7c4318edc7bb636c3"
            },
            "downloads": -1,
            "filename": "html_testRunner-1.2.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ee23b5b14410f9869d3ee2d4d3344852",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 11300,
            "upload_time": "2019-09-09T02:12:52",
            "upload_time_iso_8601": "2019-09-09T02:12:52.444219Z",
            "url": "https://files.pythonhosted.org/packages/5e/14/456d48d6741c3cbbf170bf2a9c4f8075034baff4261819e8121d971e054e/html_testRunner-1.2.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "ad456fa929aa0462afae6323282cc5ad",
                "sha256": "dd65027b62078ffe450a1276f4875f6f3f2a03b13bb3ea144428b87784dc387a"
            },
            "downloads": -1,
            "filename": "html-testRunner-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ad456fa929aa0462afae6323282cc5ad",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 534405,
            "upload_time": "2019-09-09T02:12:54",
            "upload_time_iso_8601": "2019-09-09T02:12:54.298232Z",
            "url": "https://files.pythonhosted.org/packages/5d/5b/7844d6e6e9d072f38666fb332fc85aaa7ebed99b2f792c724d8a85282254/html-testRunner-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2019-09-09 02:12:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "oldani",
    "github_project": "HtmlTestRunner",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "html-testrunner"
}
        
Elapsed time: 0.02568s