Skip to content

Error when the suite is aborted #8

@olivier34000

Description

@olivier34000

Hello,

In some cases when some tests fail Behat through the following exception.

 [Behat\Testwork\Call\Exception\CallErrorException]   Catchable Fatal Error: Argument 1 passed to Vanare\BehatCucumberJsonFormatter\Formatter\Formatter::onAfterSuiteTested() must be an instance of Behat\Testwork\EventDispatcher\Event\AfterSuiteTested, instance of Behat\Testwork\EventDispatcher\Event\AfterSuiteAborted given in /home/ubuntu/tws/src/vendor/vanare/behat-cucumber-json-formatter/src/Formatter/Formatter.php line 346

A solution could be not to fill the parameters of the method onAfterSuiteTested of Formatter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions