===============================
test_cover
===============================
.. image:: https://img.shields.io/pypi/v/test_cover.svg
:target: https://pypi.python.org/pypi/test_cover
.. image:: https://img.shields.io/travis/usalko/test_cover.svg
:target: https://travis-ci.org/usalko/test_cover
HtmlTest runner is a unittest test runner that save test results
in Html files, for human readable presentation of results.
This Package is a fork ``html-testRunner``.
Usage:
--------------
.. code-block:: python
import test_cover
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=test_cover.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/usalko/test_cover>`_
Raw data
{
"_id": null,
"home_page": "https://github.com/usalko/test_cover",
"name": "test-cover",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "test_cover TestRunner Html Reports",
"author": "usalko",
"author_email": "ivict@rambler.ru",
"download_url": "https://files.pythonhosted.org/packages/bb/4f/1e8203d16203b92d1cd45ec0bd6115bdbaf2a12d3195b9675852a952e148/test_cover-0.1.0.tar.gz",
"platform": null,
"description": "\n===============================\ntest_cover\n===============================\n\n\n.. image:: https://img.shields.io/pypi/v/test_cover.svg\n :target: https://pypi.python.org/pypi/test_cover\n\n.. image:: https://img.shields.io/travis/usalko/test_cover.svg\n :target: https://travis-ci.org/usalko/test_cover\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 is a fork ``html-testRunner``.\n\nUsage:\n--------------\n\n.. code-block:: python\n\n import test_cover\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=test_cover.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/usalko/test_cover>`_\n",
"bugtrack_url": null,
"license": "APACHE 2.0",
"summary": "A Test Runner in python, for Human Readable HTML Reports",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/usalko/test_cover"
},
"split_keywords": [
"test_cover",
"testrunner",
"html",
"reports"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "6a44b0a06d80cf948180ccabc05d2d555e6efb6d204adeabf553ca3bfc97edf3",
"md5": "d35f98517a848be177efbd07f168ed62",
"sha256": "18872f012e3fd06390fc2a3763ae4327b1e1ee336522fde37dcc2dbad6cc267c"
},
"downloads": -1,
"filename": "test_cover-0.1.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "d35f98517a848be177efbd07f168ed62",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 14196,
"upload_time": "2025-01-23T21:13:51",
"upload_time_iso_8601": "2025-01-23T21:13:51.281696Z",
"url": "https://files.pythonhosted.org/packages/6a/44/b0a06d80cf948180ccabc05d2d555e6efb6d204adeabf553ca3bfc97edf3/test_cover-0.1.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "bb4f1e8203d16203b92d1cd45ec0bd6115bdbaf2a12d3195b9675852a952e148",
"md5": "2819fc0c106b911e8ff59f4cad84eaf3",
"sha256": "ea626efdee703809cdb48842745cd89a8b360ce6a0d81a85bdfcbf3da6669464"
},
"downloads": -1,
"filename": "test_cover-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "2819fc0c106b911e8ff59f4cad84eaf3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 540509,
"upload_time": "2025-01-23T21:13:53",
"upload_time_iso_8601": "2025-01-23T21:13:53.827408Z",
"url": "https://files.pythonhosted.org/packages/bb/4f/1e8203d16203b92d1cd45ec0bd6115bdbaf2a12d3195b9675852a952e148/test_cover-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-23 21:13:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "usalko",
"github_project": "test_cover",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "Jinja2",
"specs": [
[
">=",
"2.10.1"
]
]
}
],
"lcname": "test-cover"
}