
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
.. 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
.
.. 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.
Github <https://github.com/usalko/test_cover>
_FAQs
A Test Runner in python, for Human Readable HTML Reports
We found that test-cover demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.