behave-html-formatter
HTML formatter for Behave
What it is and what it does
This package extends Behave, the Python BDD framework, with an HTML formatter that transforms test execution results into readable HTML reports. It registers as a custom formatter within Behave's plugin system, allowing you to generate reports by passing `-f html` to the behave command-line tool. The formatter outputs browsable HTML files that present test scenarios, steps, and outcomes in a structured format suitable for sharing with stakeholders or archiving test results.
The package has minimal dependencies—only behave itself—and integrates through a configuration file rather than code changes. It supports Python 3.6 and later, including PyPy, and is actively maintained. The project is small and focused, with no known security vulnerabilities, making it a straightforward addition to a Behave-based testing workflow when HTML reporting is needed.
Use it for:
- Generate shareable HTML test reports from Behave BDD test suites for stakeholder review.
- Archive test execution results in a human-readable format for compliance or audit documentation.
- Create CI/CD pipeline artifacts that display test outcomes without requiring Behave to be installed on the viewing machine.
- Integrate Behave test results into project documentation or test dashboards via HTML output.
- Replace Behave's default console output with formatted HTML for better visibility of test step details and failures.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Generates HTML reports from Behave BDD test runs by registering as a custom formatter that outputs test results in browsable HTML format.
Yes, if you use Behave and need HTML test reports. The package is lightweight, has no security issues, and integrates cleanly via configuration. The GPLv3 license is a consideration only if you plan to redistribute or embed it in proprietary software. The last release was in June 2022, but the repository remains active with recent commits, so maintenance risk is low for a stable formatter.
Install
behave-html-formatter on PyPI
pip
pip install behave-html-formatteruv
uv add behave-html-formatterpoetry
poetry add behave-html-formatterInstalling behave-html-formatter
Before you install
Low install friction with a single runtime dependency on behave. Actively maintained as of February 2026, though the last release was in June 2022.
License in practice
Licensed under GPLv3 (copyleft). Any derivative work or distribution must also be open-source under GPLv3 terms.
Quickstart
pip install behave-html-formatter
# Add to behave.ini:
# [behave.formatters]
# html = behave_html_formatter:HTMLFormatter
behave -f html -o report.html
Requires behave to be installed and a behave.ini configuration file in the project or home directory.
Verify before relying
- Whether the HTML output includes interactive features (filtering, search, collapsible sections) beyond static test results.
- Whether CSS/JavaScript minification mentioned in the contributing guide affects report file size or load performance.
- Compatibility with recent behave versions beyond the Python 3.9 support listed in classifiers.
Package facts
| License | not declared (copyleft) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — behave |
| Maintenance | actively maintained — 1,506 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 164,275/month — #10,555 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: behave_html_formatter-0.9.10-py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
allure-behaveIntegrates Behave BDD test execution with…
permissive · top 15,000 on PyPI
behave-reportportalIntegrates Behave BDD test execution with…
permissive · top 15,000 on PyPI
behave-djangoIntegrates Behave BDD testing into Django…
permissive · top 15,000 on PyPI
behavebehave is a behavior-driven development (BDD)…
permissive · top 5,000 on PyPI
behavexBehaveX extends Behave with parallel test…
unclear · top 15,000 on PyPI
allure-pytest-bddIntegrates Allure Report with Pytest-BDD to…
permissive · top 15,000 on PyPI
pytest-pspecFormats pytest test output in RSpec-style…
permissive · top 15,000 on PyPI
flake8-formatter-junit-xmlFormats flake8 linting output as JUnit XML,…
permissive · top 15,000 on PyPI
pytest-bddpytest-bdd implements Gherkin-based…
permissive · top 5,000 on PyPI
cucumber-tag-expressionsParses and evaluates boolean tag expressions…
permissive · top 5,000 on PyPI