On Sun, May 8, 2011 at 12:14 PM, Shantanu Kumar <kumar.shant...@gmail.com> wrote: > On May 8, 6:57 pm, Tim McIver <tmci...@verizon.net> wrote: >> @Ken: I looked into mocking a (very little) bit. I don't have any >> experience with it but I'm worried about the need to sync the 'real' >> database with my mocked functions. Using the real schema is appealing >> because I don't have to worry about synchronization issues. >> > > Yes. Mocking can help test an individual layer (e.g. the business > layer without worrying about the underlying database layer), but you > also need tests for the database layer anyway, which cannot be done > without a real database. At best, probably testing can be done on an > in-memory database (e.g. H2) and deployment on MySQL as long as the > SQL is portable.
That's basically what I was thinking: use something like H2 to essentially mock the db itself, rather than the whole db layer. -- 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