I'm looking for some input as to the best way to test functions that interact with a database. I've just started writing some tests for functions that read/write to a mysql database (using clojure.contrib.sql) but my problem is that I'd like the tests to begin with either an empty database or one that has been initialized with some known data. Some of my functions add/remove data from the database and so some of these tests will fail if run again on the changed database. I was thinking I'd have a fixture that loaded a mysql dump file before running the tests but I haven't found any way to do this in Clojure. Any suggestions?
-- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en