Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Using debugger breakpoints in Test::Class code

by jimX11 (Friar)
on Nov 16, 2008 at 22:24 UTC ( [id://723952]=note: print w/replies, xml ) Need Help??


in reply to Using debugger breakpoints in Test::Class code

Gerard Meszaros wrote a wonderful book on refactoring tests - xUnit Test Patterns (amazon link)
He lists code smells:
  • Eager Test (testing too much at once)
  • Conditional Test Code (he suggests limiting the use of "if" in tests)
  • Obscure Test (what is being tested?)
  • Test Code Duplication
At $work I cleaned up our test suite just a bit, removing eager tests, conditional logic and obscure tests. I haven't use Test::Class.
Meszaros says test could should be drop dead simple.
  • Comment on Re: Using debugger breakpoints in Test::Class code

Replies are listed 'Best First'.
Re^2: Using debugger breakpoints in Test::Class code
by secondturtle (Initiate) on Nov 19, 2008 at 19:35 UTC

    Funny that you would cite a book about xUnit testing in an attempt to support your suggestion that I shouldn't be using the most widely adopted perl implementation of xUnit.

    I haven't read Meszaros's book (yet), but it sounds like he knows what he's talking about. Thanks for the suggestion.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-23 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found