Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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 :-))

In reply to Re: how to begin with testing? by Bloodnok
in thread how to begin with testing? by stinkingpig

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-29 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found