Skip to content
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

False positive on Common Given steps should be added to Background #71

Open
tommywo opened this issue Mar 11, 2019 · 2 comments
Open

False positive on Common Given steps should be added to Background #71

tommywo opened this issue Mar 11, 2019 · 2 comments

Comments

@tommywo
Copy link

tommywo commented Mar 11, 2019

Background doesn't support examples, so rule shouldn't apply to steps that require parameters.

@racodond
Copy link
Owner

Hi,

Thanks for your feedback!
Just to make sure I fully understand, could you please provide a code sample?

Thank you

David

@tommywo
Copy link
Author

tommywo commented Mar 20, 2019

Example:

Scenario Outline: 
  Given I log in with user <user> and password <password>
  When some action
  Then some result

  Examples:
    | user   | password |
    | user1  | pass1    |
    | user2  | pass2    |

Scenario Outline: 
  Given I log in with user <user> and password <password>
  When different action
  Then different result

  Examples:
    | user   | password |
    | user3  | pass3    |
    | user4  | pass4    |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants