forceedge01 / behat-fail-aid

Get more out of your test suite by getting it to work with you when tests fail. Works with Goutte and MinkExtension (Selenium2Driver)
MIT License
28 stars 6 forks source link

Ability to read from a debug bar #1

Closed forceedge01 closed 6 years ago

forceedge01 commented 6 years ago

Allow debugBarSelector parameter to be set via the behat.yml and if a fail occurs, read off any data present and print out in the failure.

Maybe worth doing a special output of the debug bar if its a 500 error.

forceedge01 commented 6 years ago

FailAid/Context/FailureContext: debugBarSelectors:

This should output additional to the existing data:

...
[RERUN] ...
[DEBUG BAR INFO]
    [STATUS CODE]: <text from selector>
    [ERROR MESSAGE]: <text from selector>