Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Perl Testing and Quality Assurance

by adrianh (Chancellor)
on Jun 02, 2003 at 12:40 UTC ( #262351=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl Testing and Quality Assurance
in thread Perl Testing and Quality Assurance

All excellent advice.

Another approach to determining what your tests should do is to see what you can remove from the code.

Just delete a line or subroutine.

Do all your tests still pass? If so one of the following is true.

  • You need to write another test to highlight the defect in the code you've just created.
  • You've found a feature that's surplus to requirements - well done you now have a simpler code base.

God I love unit tests :-)

You can even automate this sort of thing if you are that way inclined (see this interview where Java's Jester is discussed for an example).


Comment on Re^2: Perl Testing and Quality Assurance

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2014-12-29 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls