Skip to main content

ndjson TestRunner pypi-badge

Exports JSONTestRunner, a unittest TestRunner class that outputs ndjson. One JSON record per test result:

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

Usage

Use it programmatically:

>>> import unittest
>>> from ndjson_testrunner import JSONTestRunner
>>> unittest.main("test_module_name", testRunner=JSONTestRunner)

or from the command line:

python -m ndjson_testrunner test_module_name

Check out e.g. how IRKernel’s usage looks.

Metadata

Release files for ndjson-testrunner 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ndjson-testrunner 1.1.3
File Size Uploaded Provenance Actions
ndjson_testrunner-1.1.3.tar.gz 18.2 kB Without provenance Details for ndjson_testrunner-1.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ndjson-testrunner 1.1.3
File Interpreter ABI Platform Actions
ndjson_testrunner-1.1.3-py3-none-any.whl Python 3 none any Details for ndjson_testrunner-1.1.3-py3-none-any.whl

Total release size: 34.3 kB

Release files / ndjson_testrunner-1.1.3.tar.gz

Download URL ndjson_testrunner-1.1.3.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
58f6cdceac7345e3fbce809c40079323d99033be0e5dce79f2f60de0f7d35858
BLAKE2b-256 checksum
How to use checksums
2bd41034e366d83a9f366ecd06ce8cb60d49ced5a2f3bfd1310a92f2b808fff7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / ndjson_testrunner-1.1.3-py3-none-any.whl

Download URL ndjson_testrunner-1.1.3-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68e6db0ab615e10292010cf16128287e1b525804a019a177ad8efb0670e708e7
BLAKE2b-256 checksum
How to use checksums
2feff32de8914efb2df750d9ebc66f0f2aca75a403a401bc0ebd7ffa13c98d2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Security for ndjson-testrunner 1.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page