3 ms·
I’d recommend whichever one is available in a language the project uses already. Automatic tests for a database could simply be writes followed by reads with e
by mdavidn 5y ago
I’d recommend whichever one is available in a language the project uses already.
Automatic tests for a database could simply be writes followed by reads with expectations for the returned rows. This is how Postgres tests itself.
My personal go-to right now is ActiveRecord and RSpec. The examples could just as easily run raw SQL directly using the Ruby pg driver.