Skip to content

[Bug] onBeforeRunFeature not being called in a specific case #278

Open
@youssef-t

Description

@youssef-t

Version: 3.0.0-rc.17

Hello,

First of all, I would like to thank you for the package.

The issue is related to calling reporters before running a feature using the following method:

This method is called before running the first scenario, which is equivalent to calling it before the feature generally speaking.
But, what if the first scenario was ignored using a tag expression ?
In this case, the method onBeforeRunFeature will not be called.

The example using the integration_test package illustrates the issue:
For the first scenario, onBeforeRunFeature is called


But, for the second scenario, the method onBeforeRunFeature is not passed as an argument to it. As a consequence, onBeforeRunFeature cannot be called in any case.

It would be great to use another mechanism to detect the first scenario to run for a feature.

Thank you !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions