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. > @Shantanu: This looks great! I've also recently started thinking > about the best way to migrate changes (I've been doing it by hand, but > they've been small changes). I'll look into this more. > For offline migrations, you may also find this Leiningen plugin useful: https://bitbucket.org/kumarshantanu/lein-lb/src/ Regards, Shantanu -- 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