Scenario tags spread across other similar named scenarios #351

Open
pvanderlinden opened this Issue Jun 3, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@pvanderlinden

For example::

@some_tag
Feature: Test tags

     Scenario: Test it
         Step 1


     Scenario: Only feature tag
         Step 1


     @something_else
     Scenario: Test it with something else
         Step 1

Will result in::

Feature: Test tags                      # features/de.feature:2

  @some_tag @something_else @some_tag
  Scenario: Test it# features/de.feature:4
    Step 1                              # features/de.feature:5

  Scenario: Only feature tag            # features/de.feature:8
    Step 1                              # features/de.feature:5

  @something_else @some_tag
  Scenario: Test it with something else# features/de.feature:13
    Step 1       

This is probably related to scanning the who file instead of just the current scenario.
Also demonstrating #332 which is probably due to the discovery of tags only is triggered when the previous line of a scenario has a tag.

@danni

This comment has been minimized.

Show comment Hide comment
@danni

danni Feb 12, 2014

Collaborator

This should be fixed with the new parser (#429). Could you send a pull request with a test case to validate?

Collaborator

danni commented Feb 12, 2014

This should be fixed with the new parser (#429). Could you send a pull request with a test case to validate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment