Skip to content

Cucumber features: guidelines, common background data we use

Ashley Engelund edited this page May 5, 2017 · 1 revision

Notes about writing Cucumber features (our integration tests)

Organizing tests

  • naming
  • putting in folders Initially, all .feature files have been directly under /features. Now that we have more and more tests and files, we're starting to put them into separate directories. [what are the directories? Why/when make a new directory?]

Background Data

So you understand data in tests, and so you can easily copy from here and paste into the background section of your tests.

Here are some typical background data that we use a often. You can set up your background data using whatever names and items you'd like, but here are ones that have become common as we've talked about typical users (a.k.a. 'personas'):

  • Note that in Sweden, domains typically end with .se (instead of .com).

administrative user: email: [email protected]

an approved member: "Emma HappyMutts" (the 'owner' of the "Happy Mutts" dog training company)

Clone this wiki locally