in reply to Reusing tests against multiple databases

I have a bunch of code I run tests against for SQLite and MySQL databases. I simply pass the DBI connect parameters into a test routine that opens the DB handle and runs the tests against it (in fact it actually passes the parameters through to an object constructor, but same difference).

If you need special processing for the individual database engines shouldn't that be handled by the code under test? If not then add the handling for that to the test code.

True laziness is hard work
  • Comment on Re: Reusing tests against multiple databases