Usage
August 10, 2026 ยท View on GitHub
Installation
pip install behave-modern-console-report
Basic configuration
Register the formatter in your behave.ini:
[behave]
default_format=modern-console
[behave.formatters]
modern-console = behave_modern_console_report.formatters.modern:ModernFormatter
modern-console-live = behave_modern_console_report.formatters.modern_live:ModernLiveFormatter
log = behave_modern_console_report.formatters.log:LogFormatter
ci = behave_modern_console_report.formatters.ci:CIFormatter
minimal = behave_modern_console_report.formatters.minimal:MinimalFormatter
progress = behave_modern_console_report.formatters.progress:ProgressFormatter
Then run Behave as usual:
behave
Selecting a formatter from the command line
behave --format=modern-console-live
Using the fully qualified formatter name
If you do not want to register the short name, use the full module path:
behave -f behave_modern_console_report.formatters.modern:ModernFormatter
Combining with other formatters
Behave supports multiple formatters at once. For example, generate a Markdown report while showing live console output:
behave -f modern-console-live -o /dev/null -f behave_modern_md_report.formatter:BehaveMarkdownFormatter -o report.md
On Windows use NUL instead of /dev/null:
behave -f modern-console-live -o NUL -f behave_modern_md_report.formatter:BehaveMarkdownFormatter -o report.md
Running a single feature file
behave --format=modern-console features/login.feature
Passing configuration options
behave --format=modern-console -D mcr.colors=false -D mcr.show_steps=false
See configuration.md for the full list of options.