Re: Unit testing persistence

2013-08-02 Thread Jeremiah Peschka
Responses inline. --- Jeremiah Peschka - Founder, Brent Ozar Unlimited MCITP: SQL Server 2008, MVP Cloudera Certified Developer for Apache Hadoop On Wed, Jul 31, 2013 at 9:41 PM, Wagner Camarao wag...@crunchbase.comwrote: Hi all ~ Great meetup today - looking forward to upgrading to 1.4 I

Unit testing persistence

2013-07-31 Thread Wagner Camarao
Hi all ~ Great meetup today - looking forward to upgrading to 1.4 I had a question Mark suggested posting here, then we discussed with a few other folks too: How do we unit / integration test persistence with riak? Given a basic dev environment, e.g. running only one riak physical node locally

Re: Unit testing persistence

2013-07-31 Thread Jeremy Ong
Be advised, avoiding mocking/stubbing and making your tests unit tests are mutually exclusive. A unit test by definition should not have any dependencies whatsoever (on other modules even, let alone a database!). On Wed, Jul 31, 2013 at 9:41 PM, Wagner Camarao wag...@crunchbase.com wrote: Hi all