Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

A question of test complexity

by andreas1234567 (Vicar)
on Nov 19, 2008 at 13:47 UTC ( #724584=perlquestion: print w/ replies, xml ) Need Help??
andreas1234567 has asked for the wisdom of the Perl Monks concerning the following question:

I work on expanding Test::MockDBI to address some of its limitations (e.g. support for fetchrow_hashref and control of errstr, see also a cpanratings review). It uses a test setup where test programs are generated on the fly. The motivation for doing so is noted in the HISTORY:
- The separate test programs are autogenerated so they use the correct #! startup line.
It works like this: It strikes me as unnecessarily complex. If I were to expand the module, do you think I should continue using the same approach?
--
No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]

Comment on A question of test complexity
Select or Download Code
Re: A question of test complexity
by dragonchild (Archbishop) on Nov 19, 2008 at 14:31 UTC
    First off, why support Test::MockDBI when DBD::Mock exists? The maintainer of that module would love some help, as he's told me more than once.

    That method of generating tests is completely outdated and should be rewritten completely. It's unnecessarily complex and doesn't play well with Test::Harness. Put everything into .t files and get rid of the multiple invocations. For one thing, being able to say "prove t/foo.t" is nice.


    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
      That method of generating tests is completely outdated and should be rewritten completely.
      The test suite of Test::MockDBI has been completely rewritten as of version 0.62. See Changes.
      --
      No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://724584]
Approved by svenXY
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2014-08-30 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls