« Return to Thread: How to TDD a Reporting Application?

Re: How to TDD a Reporting Application?

by George Dinwiddie :: Rate this Message:

Reply to Author | View in Thread

fsharpmike wrote:
> Hi,
>
>     I appreciate the responses.  What I'm really having trouble with
> is testing the database.  Specifically, setting up the test data.  For
> the first time ever I'm considering mocking test data, which I've
> always been loathe to do, but this data is so complex, and I'm only
> reading it, so it might not make sense to do actual database inserts
> in this case.  Thoughts?

Have you looked at dbunit?  Though, for testing reporting, I think I'd
rather mock the data access layer than insert into the database.  That,
of course, is without knowing your context.

  - George

--
  ----------------------------------------------------------------------
   * George Dinwiddie *                      http://blog.gdinwiddie.com
   Software Development                    http://www.idiacomputing.com
   Consultant and Coach                    http://www.agilemaryland.org
  ----------------------------------------------------------------------

 « Return to Thread: How to TDD a Reporting Application?