-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Codeception Db Module deleting my DATABASE! #574
Comments
Sorry, but I think you misread documentation.
You should create a test dump yourself (via Just to be clear: Db module does not create dumps itself. It uses the dump you created to load data before tests. |
Okay, that's mean in the step should be: dump the live database, put it into If I'm right, i think you should change config name from |
I have the same feelings, and i'm here because i was mislead the same way DB Dump, sounds like a place where the DB will be dumped. +1 On the rename request. |
I had to spend a few hours trying to find why the database is not restored in my acceptance tests because I expected the database data are automatically dumped when |
@mipon there are much better tools to create database dumps. Codeception is a testing framework not a database dumper. So we recommend to dump data on your own. You can use |
@DavertMik I see. Thanks for the advice. |
We've just come across a similar problem. We have some tests that are running on a new table. We put the |
@gustavovaldezsan And here I came to see why |
Same here, I'm also running some tests and using |
I user Codeception version 1.6.7
Following with this tutorial here http://codeception.com/docs/modules/Db
I tried this Db config:
And this is the code for my AcceptanceTesting
And then everytime i use
run
command, my actual database table is deleted!!!and no database is dumped in
tests/_data/dump.sql
Why this happening?
The text was updated successfully, but these errors were encountered: