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":



  • 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.