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-fail
vendor/bin/behat --format=progress_fail
behat.yml
default:
extensions:
DrevOps\BehatFormatProgressFail\FormatExtension: ~
or
behat.yml
default:
extensions:
DrevOps\BehatFormatProgressFail\FormatExtension:
show_output: in-summary # Supported values: yes | no | on-fail
Show 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
composer lint
composer lint-fix
composer test
This repository was created using the Scaffold project template