Skip to content
This repository has been archived by the owner on Aug 1, 2018. It is now read-only.

Add proper cleanup #38

Open
PVince81 opened this issue Jan 26, 2014 · 1 comment
Open

Add proper cleanup #38

PVince81 opened this issue Jan 26, 2014 · 1 comment
Labels
Milestone

Comments

@PVince81
Copy link
Contributor

Currently after each scenario the next scenario runs with a "dirty" state from the previous one.

I search for documentation online but it seems the most common pattern is to connect directly to the DB and reset the data there. That would be one possible approach.

Another approach, which is probably more complex, is to create steps that will cleanup over the UI (for example delete a user after the creation test, etc).

We should probably look into direct DB access first as it might help accelerate some tests. For example "Given that user user1 exists" could directly add an entry for that (which seems to be the way how others do it)

@Gomez
Copy link
Contributor

Gomez commented Jan 28, 2014

Yes, we should reset the DB after every Scenario. This could be done with a chef command and executed after every Scenario.

@DeepDiver1975 DeepDiver1975 modified the milestone: backlog Aug 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants