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

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

That's a "big shop" attitude, but where possible, I totally agree with you.

However, and this is where we may disagree, is that I see a tendancy for XP and TDD or maybe it's just some practitioners of those, that tend to place too high an emphasis upon unit testing. There is a tendancy for unit tests to be too all encompassing; too extensive; too mandated; too important. Effectively, I see unit tests being used as a substitute for, and largely overlapping the bounds of integration testing, and another form of testing that seems to be out of favour currently--functional verification.

Under the schemes of testing I grew up with, unit tests were the programmers own sanity checks of his own code. They were entirly within his mandate, his responsibility, and for his benefit. They written by the programmer, run by the programmer, acted upon by the programmer. They served his purpose, not that of the organisation. They were, by implication, white-box tests.

Once the programmer says his code is ready, then the responsibility and purview moves away from the programmer to the tester, and into the realms of Functional Verification. These are black-box tests, written to specification by a third party, code unseen; and run by a third party. These tests are for the organisation.

Integration tests are used when modules written by disparate groups come together. Their form is dependant upon the nature of the coming together. Where there is a definite caller/called relationship, the UT and FV tests of the calling code becomes an effective IT of the interface between the calling and called code.

In other situations, there is a more peer-level relationship between the modules and there may not be any (in-house) application who's FV & UT will perform this role. In these circumstances, there is a need to write an in-house integration suite. This may also take the form of a demonstration application and/or user acceptance test.

System test comes when a complete system is put together. This may or may not: happen in-house; be a real application, or demonstration; form a part of a user acceptance, or contractual obligation.

The trick to a successful and cost effective test program, is to minimise the overlap between these levels, whilst ensuring coverage.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re^4: When Test Suites Attack by BrowserUk
in thread When Test Suites Attack by Ovid

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 avoiding work at the Monastery: (3)
As of 2024-04-23 22:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found