polo icon indicating copy to clipboard operation
polo copied to clipboard

Multi Database tests

Open nettofarah opened this issue 10 years ago • 3 comments

We currently run all of our tests using SQLite in memory.

While this runs super fast and works great it doesn't really test Polo against some specific scenarios such as how different databases quote fields or how on_duplicate works with different databases.

My assumption is that we could set up some extra databases with appraisal and get some more coverage.

nettofarah avatar Dec 01 '15 07:12 nettofarah

I like how activerecord-import solves this problem.

We might be able to do something similar to this: https://github.com/zdennis/activerecord-import/tree/master/test

nettofarah avatar Dec 07 '15 18:12 nettofarah

Another option is to set up multiple databases in travis.

nettofarah avatar Dec 15 '15 23:12 nettofarah

An even cooler option would be to setup some docker containers.

nettofarah avatar Dec 15 '15 23:12 nettofarah