Skip to content

After 2.3.2->2.4.0 update, Behat stops on the first feature involving an exception #1028

@guilliamxavier

Description

@guilliamxavier

Refs Behat/Behat#1302

After updating sentry/sentry to 2.4.0 (from 2.3.2), when Behat encounters a feature that [contains a scenario that] involves an exception (for example

    When I send a "GET" request to "/dummy"
    Then the response status code should be 404

with Symfony), then it stops after this file, not running the remaining features in the test suite.

I've tracked the regression down to commit 498a41c (PR #991).

After some debugging, it appears that the problem occurs when $value is an instance of
\Behat\Behat\Gherkin\Specification\LazyFeatureIterator and/or
\Behat\Testwork\Specification\GroupedSpecificationIterator
(I guess the serialization exhausts the current suite iterator).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions