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

Rewrite tests so that they will show intention better #21

Open
gerich-home opened this issue Dec 10, 2015 · 0 comments
Open

Rewrite tests so that they will show intention better #21

gerich-home opened this issue Dec 10, 2015 · 0 comments

Comments

@gerich-home
Copy link

  1. Setup test data in the test using Table syntax in Given
  2. Describe data criteria in When
  3. Describe match expectations in Then (matches / does not match, what data matches)

Example:

Given I have users:
| Id | Name   | Age  |
| 1  | Bob    | 10   |
| 2  | Peter  | 20   |
When I choose a user
And user's age is greater than 15 years
Then the data matches
And matched user's name is Peter
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

1 participant