
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Exports JSONTestRunner
, a unittest_ TestRunner
class that outputs ndjson_. One JSON record per test result:
.. code-block:: javascript
{
"type": "success" | "expected_failure" | "failure" | "error" | "unexpected_success" | "skip",
"id": "module.TestClass.test_function",
"desc": null | "First line of test function docstring",
"msg": null | "Exception traceback or reason for skipping"
}
To be used for test result storage or interprocess communication.
Use it programmatically:
import unittest from ndjson_testrunner import JSONTestRunner unittest.main("test_module_name", testRunner=JSONTestRunner)
or from the command line:
.. code-block:: bash
python -m ndjson_testrunner test_module_name
Check out e.g. how IRKernel’s usage
_ looks.
.. _unittest: https://docs.python.org/3/library/unittest.html .. _ndjson: http://ndjson.org .. _IRKernel’s usage: https://github.com/IRkernel/IRkernel/blob/master/tests/testthat/test_kernel.r
.. |pypi-badge| image:: https://img.shields.io/pypi/v/ndjson-testrunner.svg?style=flat-square :target: https://pypi.python.org/pypi/ndjson-testrunner
FAQs
A test runner that outputs newline delimited JSON results
We found that ndjson-testrunner 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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.