$npx skillfedfor your agent

pytest-json-ctrf

Pytest plugin to generate json report in CTRF (Common Test Report Format)

Worth itPyPI TestingReleased Jul 2026273.0M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_json_ctrf-0.5.3-py3-none-any.whl
v0.5.3 · released 2026-07-19 · Python >=3.8 · 1 runtime deps: pytest

Yes. This is a lightweight, actively maintained plugin with no security issues, low install friction, and a clear use case for teams already using pytest who need standardized test reporting. Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8 or later.
  • Low install friction with a single runtime dependency on pytest.
  • Actively maintained with a recent release 26 days ago and no known vulnerabilities.

License · maintenance · safety

permissive license (permissive) — MIT license permits unrestricted use, modification, and distribution in commercial and private projects with minimal restrictions.

last release 2026-07-19 (26 days) · last repo commit 2026-03-31 · 20 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 273,013,127 downloads/mo, #148 on PyPI

Verify before relying

pip install pytest-json-ctrf

pytest --ctrf report.json

# Environment variables for build metadata:
CTRF_BUILD_NAME="Pytest JSON CTRF Report"
CTRF_BUILD_NUMBER="000"
CTRF_BUILD_URL="https://ctrf.io"
  • Whether the plugin handles all pytest outcome states (passed, failed, skipped, pending, other) correctly in all scenarios.
  • Performance characteristics when running with large test suites or many parametrized tests.
  • Compatibility with pytest versions beyond the current test coverage.
Same gist for agents: .md · .json

What it is and what it does

pytest-json-ctrf is a pytest plugin that intercepts test execution and writes results to a standardized JSON report following the Common Test Report Format (CTRF) specification. It runs as a pytest hook, collecting test outcomes (pass, fail, skip) and metadata like duration and environment details, then serializes them into a structured JSON file that can be consumed by other tools like GitHub Actions reporters or Slack integrations.

The plugin is designed to work transparently with pytest's distributed testing via pytest-xdist and can extract browser information from pytest-playwright when present. It handles parametrized tests by reporting them as separate test entries rather than retries, and includes build metadata from environment variables. The generated report includes summary statistics, individual test results with durations, and optional environment context.

Use it for

  • Export pytest results to a standardized format for consumption by CI/CD dashboards and reporting tools.
  • Generate test reports that integrate with GitHub Actions via github-actions-ctrf for automated result visualization.
  • Collect and aggregate test results from distributed test runs using pytest-xdist into a single unified report.
  • Feed test data to Slack reporters or other notification systems that consume CTRF-formatted JSON.
  • Track browser-based test results from pytest-playwright with browser name metadata included in the report.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

This is a lightweight, actively maintained plugin with no security issues, low install friction, and a clear use case for teams already using pytest who need standardized test reporting. Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

Install

pytest-json-ctrf on PyPI

Before you install

Low install friction with a single runtime dependency on pytest. Actively maintained with a recent release 26 days ago and no known vulnerabilities.

Requires Python 3.8 or later.

License in practice

MIT license permits unrestricted use, modification, and distribution in commercial and private projects with minimal restrictions.

Quickstart

pip install pytest-json-ctrf

pytest --ctrf report.json

# Environment variables for build metadata:
CTRF_BUILD_NAME="Pytest JSON CTRF Report"
CTRF_BUILD_NUMBER="000"
CTRF_BUILD_URL="https://ctrf.io"

Verify before relying

  • Whether the plugin handles all pytest outcome states (passed, failed, skipped, pending, other) correctly in all scenarios.
  • Performance characteristics when running with large test suites or many parametrized tests.
  • Compatibility with pytest versions beyond the current test coverage.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pytest
MaintenanceActively maintained 26 days since the last release
Last repo commit
First released
Downloads273,013,127 / month, #148 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Framework :: PytestLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Evidence: pytest_json_ctrf-0.5.3-py3-none-any.whl

Tags

Capabilities
pytest json report generatorctrf test report formatpytest test result exportjson test report pluginpytest xdist reportingtest report standardizationpytest github actions integration
Topics
test-reportingci-cd-integrationpytest-plugin

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “ctrf test report format”

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-cov Worth it
PyPI · Utilities · released Mar 2026

A pytest plugin that measures code coverage during test runs, automatically combining coverage data and supporting distributed testing with pytest-xdist.

Install it if you want coverage reports as part of your normal test workflow.

MITpure Python · 3.9+
235.9Mdownloads / mo

See also pytest-html · pytest-playwright · pytest-json · pytest-reportlog · pytest-replay · pytest-json-report · pytest-extra-durations · pytest-excel · pytest-emoji