New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support running background job once per feature #295
Comments
#281 does make the implementation a bit easier, but it's still not simple. |
One solution could be include a new specific class in model.py based on Background -but different one in order to maintain the current Background behavior- and forcing one execution per feature in the same model.py. So since Background is added for each scenario, for example, the execution could be forced easily adding that new class only for the first scenario. Note that for adding that new class, it would be necessary to modify formatter, etc. |
Use scenarios with tags |
Great stuff! Could not find this documented anywhere... Would it be worth doing so? Any more details we should know about? |
@jenisys, The problem that I see using I think that a functionality to skip the background in a scenario is desired. |
@mbarakaja |
Hi, I've updated #281 and I think this sort of hook should do what @domenkozar is after?
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Comment to post when closing a stale issue. Set to
|
So currently I have implemented a tag for the Feature that runs a set of steps once per Feature (as a fixture setup).
Previously I was using
Background
, but that runs the steps for each Scenario.Not sure how to really implement this, maybe add
Setup
which is the same asBackground
, but it's ran before Feature, not each Scenario?The text was updated successfully, but these errors were encountered: