in reply to Testing and database date functions

I vote for DBD::Mock - I've had good results with it.

Alternately, the fact that testing your script isn't easy may be a sign that you should consider reworking your design. :-)

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

  • Comment on Re: Testing and database date functions

Replies are listed 'Best First'.
Re^2: Testing and database date functions
by relax99 (Monk) on Dec 09, 2004 at 19:50 UTC

    May or may not be a sign. :) The script is dead simple... I am faily sure I got the design right. I'd still be curious to see what you think about it, but I can't post it here since there are some company/business specific details and once I remove them there isn't much of the script left.

    And I naturally came across DBD::Mock once I started looking at Test::MockObject... I think DBD::Mock could be a solution to this and many other testing needs. Thank you!