mailRe: unit tests vs... the current test_suite


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Chris MacRaild on October 30, 2006 - 18:10:
On Mon, 2006-10-30 at 16:47 +0000, Gary S. Thompson wrote:
[snip]

As to why I think these are separate issues: the current test-suite
(indeed the entire relax code base) contains not one single unit-test.
Unit-tests, as their name implies, are intended to test the smallest
possible unit of code in isolation (a single function or method, at most
a single class). The type of test coded in the test-suite is much higher
level than this, and is better termed a regression test - it is intended
to test that all 'units' in the program are working together correctly.
A complete set of regression tests should catch all bugs in relax, 

This can never be the case. Catching all bugs is generally beyond the 
available time and effort limits for testsing, all you can do is check 
that in most cases output is right and that you haven't regressed due to 
changes...


Indeed. Note the use of 'complete' here. A complete set of tests is
neither possible in principle, nor worth the effort of implimenting it
in practice. It is however, a useful theoretical construct...






Related Messages


Powered by MHonArc, Updated Mon Oct 30 18:21:34 2006