in reply to Re^2: DBD::Mock -- Giving back wrong data and wrong *amounts* of data
in thread DBD::Mock -- Giving back wrong data and wrong *amounts* of data
Is there a better approach to it than that?I would start by asking myself what is it I want to test? Write a test strategy, and take it on from there. Then break it down to individual tests e.g.
Suggested reading: Perl Testing.
You may also want to take a look at Test::MockDBI (Disclaimer: I one filed a patch to the given module and ended up as its' co-maintainer).
Best of luck.
|
|---|