Skip to content

Figure out a better way of resetting the environment between scenarios #4

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

Open
danielbachhuber opened this issue Jul 14, 2016 · 1 comment

Comments

@danielbachhuber
Copy link
Contributor

Currently, if a scenario performs any form of database operation, the database alteration persists between scenarios. In the future, when the test suite is more comprehensive, this could cause unexpected failures when conflicts happen between scenarios.

We should figure out a better way of resetting the environment between scenarios. And, in the interim, we should make sure our scenarios clean up whatever database alteration they perform.

@stevector
Copy link
Collaborator

Drupal's Behat extension does some form of cleanup between scenarios. I know nodes get deleted at least. But it doesn't wipe the DB entirely. Over in the repo for the Drupal 8 search module I've been working on I rely on the config done in early scenarios persisting through to the final scenario: https://github.com/pantheon-systems/search_api_pantheon/blob/8.x-1.x/tests/behat/features/server.feature

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

No branches or pull requests

2 participants