Seem to be getting a problem when running a feature with background.
the whole file works fine however running an individual feature fails.
background steps are
Given an admin user Philip exists
When I login as Philip
Then I should be logged in as Philip
running the following scenario on its own causes an error
Scenario: Admin should be able to run a feed #
Given an admin user Philip exists #
Validation failed: Login has already been taken, Email has already
been taken (ActiveRecord::RecordInvalid)
/^I create a user with login (\w*)$/' features/admin/manage_feeds.feature:7:inGiven an admin user
Given there is 1 valid feed #
Now this only happens if there is at least one scenario in the file
the tested scenario, so I’m speculating that when you run a feature
'cucumber path/to/feature/feature:xx -r path/to/steps, then background
not doing is
- Running for preceding scenarios
- Not clearing the database for a scenario run by line number
Wondering if anyone else can replicate this, or has any ideas about it
before I put this in lighthouse.