Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: how to begin with testing?

by Bloodnok (Vicar)
on Mar 22, 2009 at 23:26 UTC ( #752454=note: print w/ replies, xml ) Need Help??


in reply to how to begin with testing?

On this thread, no one has, AFAICT, (yet) identified the, to my mind, seminal work by Langworth & chromatic - Perl Testing: A Developer's Notebook (sorry for the UK URL).

I'm sorry to have to say that I have to disagree with zwon - there are immense benefits to writing test harnesses for existing code - the principal one being the ease by which potential regressions can be caught and fixed before the code goes live - especially in cases where the maintenance is the responsibility of a (virtual) test team and the original developer(s) are no longer available. The sad thing is that, like Configuration Management (CM), most employeres/clients don't/won't see the benefits until the problem has bitten them (frequently, more than once).

You say ...compiled .exe, so they won't be running the test harness at all... - just because your end-user won't run the test harness shouldn't preclude your writing one and running the deliverable against it - testing is an essential part of quality assurance and altho' it won't, indeed can't, demonstrate that there aren't any defects, it should give you the confidence that, assuming you've written good tests, there is a significantly reduced probability of their existence.

From my own POV, I start by identifying and writing tests for...

  • corner cases aka boundary/limit conditions
  • typical operational/use cases

Just my 10 pen'orth...

A user level that continues to overstate my experience :-))


Comment on Re: how to begin with testing?
Re^2: how to begin with testing?
by BerntB (Deacon) on Mar 23, 2009 at 02:21 UTC

    I second that,.. Perl Testing was both easy to read and IMHO gave a lot to my personal development quality. Really good value for money. (-: Talking about money, was that an URL that you get money when people buy? Never mind. :-)

Re^2: how to begin with testing?
by puudeli (Pilgrim) on Mar 23, 2009 at 08:55 UTC
    On this thread, no one has, AFAICT, (yet) identified the, to my mind, seminal work by Langworth & chromatic - Perl Testing: A Developer's Notebook.

    ++ for this only. I wasn't aware that this kind of book existed so I ordered it immediately :-)

    (sorry for the UK URL)

    No need to be sorry, pound to euro exchange rates are very pleasing at the moment ;-)

    --
    seek $her, $from, $everywhere if exists $true{love};

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (22)
As of 2014-07-29 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (219 votes), past polls