|
|
|
|
|
by batbomb
4428 days ago
|
|
> Oracle abomination Okay... PostgreSQL is great but it still has a bit of catching up to do. > ... run your MySQL Wait, Oracle is an abomination but MySQL is okay? > Before each test case, we do BEGIN TRANSACTION, and at the end of the case, we do ROLLBACK TRANSACTION. This is crazy fast, so there's no setup penalty. You know what is just as easy? Making SQLite databases (aka files) for each test case. Copy a file, open it, delete it. It has the added benefit of allowing you to actually commit changes and not worry about rollback. There are some compatibility issues, and I'm not familiar with all those issues in a Rails context. |
|
By doing this, you're breaking the dev-prod parity rule of 12factor apps [0]: you should make sure your dev and prod differ as little as possible. If you're using MySQL in production, you should also use it in dev.
[0] http://12factor.net/dev-prod-parity