Skip to content
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

DB cleanup doesn't work #1740

Closed
ghost opened this issue Feb 24, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@ghost
Copy link

commented Feb 24, 2015

My config:

populate: true
cleanup: true

If I run acceptable tests then populate run correctly but DB cleanup doesn't work. Created test user remains in DB.

Codeception v2.0.11

@DavertMik

This comment has been minimized.

Copy link
Member

commented Feb 24, 2015

This could be a regression from the latest update. Could you try the same
on Codeception 2.0.10?
24 лют. 2015 13:42, користувач "patto-sk" notifications@github.com
написав:

My config:

populate: true
cleanup: true

When I run acceptable tests: populate run correctly but DB cleanup don't
work. Created test user remain in DB.

Codeception v2.0.11


Reply to this email directly or view it on GitHub
#1740.

@atorian

This comment has been minimized.

Copy link
Contributor

commented Feb 25, 2015

it only works if you provide a dump.
Db module line 122
this issue exists for a quite long time...
it means that if your application saves something to DB it won't be removed after test.

@ghost

This comment has been minimized.

Copy link
Author

commented Feb 26, 2015

Doesn't work neither 2.0.10.

I've set dump file correctly. Cleaning database before test works but cleaning after test doesn't work.

But I found solution for me. I've set a gulp task to cleanup database.

@atorian

This comment has been minimized.

Copy link
Contributor

commented Feb 28, 2015

But that make sense, espetially if you want to check DB if test fails.

@DavertMik DavertMik added the Db label Apr 9, 2015

@ghost ghost closed this Jun 8, 2015

@ghost ghost changed the title DB cleanup don't work DB cleanup doesn't work Jun 12, 2015

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.