I knew what you meant. Perhaps you don't work for a similar industry and with similar software. Different people work on different things, and that's fine.

Namely, running the same code over and over does not reproduce an external stimulus, and there is no mechanism for writing enough tests to cover even 50% of the possible things that may arise.

Anyhow, if you have actually written code that simulates network failures and firmware quirks and so forth, good for you, otherwise realize that while testing is a decent piece of things, real companies test against real hardware. Simply put, you do not know what kind of errors will come at you...

Moral of the story -- The problem of "when have I written enough tests" is about like the halting problem. Simply ensuring each line of code is executed 50 times proves nothing in this case.


In reply to Re^5: OT: TDD question by Anonymous Monk
in thread OT: TDD question by dragonchild

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.