Skip to content

🧪 Behat output formatter to show progress as TAP and failures inline

License

Notifications You must be signed in to change notification settings

drevops/behat-format-progress-fail

Folders and files

NameName
Last commit message
Last commit date
Jan 7, 2025
Jan 10, 2025
Jan 10, 2025
Jan 7, 2025
Feb 19, 2024
Feb 19, 2024
Jun 3, 2022
Jan 10, 2025
Jul 28, 2021
Jul 28, 2021
Jan 17, 2025
Jan 7, 2025
Dec 12, 2023
Jan 7, 2025
Feb 19, 2024

Repository files navigation

Behat Progress Fail Output logo

Behat Progress Fail Output Extension

GitHub Issues GitHub Pull Requests Test GitHub release (latest by date) LICENSE Renovate

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

Output in CI

Installation

composer require --dev drevops/behat-format-progress-fail

Usage

vendor/bin/behat --format=progress_fail

Configure

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

Show output from within test steps. "Output" is print, echo, var_dump, etc.

  • yes - always show the output
  • no - do not show the output
  • on-fail - only show the output if there are test fails
  • in-summary - only show in the summary if there are test fails

Maintenance

Lint code

composer lint
composer lint-fix

Run tests

composer test

This repository was created using the Scaffold project template