Skip to content

Commit

Permalink
Merge pull request #1 from vishalm/vishalm-patch-1
Browse files Browse the repository at this point in the history
Updated support for parallel scenario execution
  • Loading branch information
vishalm authored Apr 26, 2017
2 parents a57eff3 + 52312c9 commit a688049
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions behave/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,15 +745,15 @@ def run(self, runner):
run_steps = run_scenario and not runner.config.dry_run
dry_run_scenario = run_scenario and runner.config.dry_run
self.was_dry_run = dry_run_scenario

if run_scenario or runner.config.show_skipped:
for formatter in runner.formatters:
formatter.scenario(self)

runner.context._push()
runner.context.scenario = self
runner.context.tags = set(self.effective_tags)

# update here:
runner.context.feature = self.feature

if not runner.config.dry_run and run_scenario:
for tag in self.tags:
runner.run_hook('before_tag', runner.context, tag)
Expand Down

0 comments on commit a688049

Please sign in to comment.