Warning
This package is deprecated. It is supported until 31 December 2026, after which it will be marked as abandoned and will receive no further releases, fixes, or compatibility updates.
Behat now does this natively. The built-in progress formatter gained an inline_failures option that prints each failed, pending or undefined step as it happens, instead of holding everything back until the end-of-run summary. That is exactly what this extension was built for, so it has served its purpose. Upgrade to the latest Behat and use the core formatter instead - see Migrating to Behat core.
Behat output formatter to show progress as TAP and failures inline.
..
--- FAIL ---
Then I should have 3 apples # (features/apples.feature):11
Failed asserting that 2 matches expected 3.
------------
......U.......
--- FAIL ---
Then I should have 8 apples # (features/apples.feature):25
Failed asserting that 7 matches expected 8.
------------
.....UU
composer require --dev drevops/behat-format-progress-failvendor/bin/behat --format=progress_failbehat.yml
default:
extensions:
DrevOps\BehatFormatProgressFail\FormatExtension: ~or
behat.yml
default:
extensions:
DrevOps\BehatFormatProgressFail\FormatExtension:
show_output: in-summary # Supported values: yes | no | on-failShow output from within test steps. "Output" is print, echo, var_dump, etc.
yes- always show the outputno- do not show the outputon-fail- only show the output if there are test failsin-summary- only show in the summary if there are test fails
Upgrade Behat, remove this extension from your behat.yml, and enable the option on the built-in progress formatter instead:
behat.yml
default:
formatters:
progress:
inline_failures: true
show_output: in-summaryOr pass it on the command line:
vendor/bin/behat --format=progress --format-settings='{"inline_failures": true}'show_output keeps the same four values in core that it has here (yes, no, on-fail, in-summary), so that part of your configuration carries over unchanged.
Then drop the dependency:
composer remove --dev drevops/behat-format-progress-failOne caveat on timing: inline_failures is merged into Behat's 3.x branch, but it has not been tagged in a stable release yet (the newest is v3.32.0). It will land in the next 3.x release. Until then, stay on this extension - that is what the support window through December 2026 is for.
composer lint
composer lint-fixcomposer testThis repository was created using the Scaffold project template

