report
Generate and show test reports.
Description
report generates reports from feature files or test results. It
unifies the behave-modern-*-report formatters under one command and can
open the latest report in the browser.
Usage
Subcommands
report generate
| Flag | Type | Default | Description |
|---|---|---|---|
[FEATURES]... |
PATH | features |
Paths to feature files or directories. |
--format |
TEXT | console |
Report format: console, html, md, json, sheets, file. |
--output |
PATH | None | Output directory for reports. |
report show
| Flag | Type | Default | Description |
|---|---|---|---|
--output |
PATH | reports |
Directory containing reports. |
Examples
# Generate a console report
behave-runner report generate
# Generate an HTML report
behave-runner report generate --format html
# Generate a JSON report to a specific directory
behave-runner report generate --format json --output reports/
# Open the latest report in the browser
behave-runner report show
Dependencies
report generate needs the formatter for the chosen format:
behave-runner[report-console]forconsolebehave-runner[report-html]forhtmlbehave-runner[report-md]formdbehave-runner[report-json]forjsonbehave-runner[report-sheets]forsheetsbehave-runner[report-file]forfile