Helper unit testing functions in Phobos (possible std.unittests)

"Jérôme M. Berger" jeberger at free.fr
Sat Nov 6 13:05:13 PDT 2010


spir wrote:
> On Sat, 6 Nov 2010 01:21:25 -0700
> Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> 
>> I believe strongly that a unit test block which has a failure should end 
>> excecution. For many such tests, continuing would be utterly pointless, since 
>> each successive test relies on the last.
> 
> I don't understand. I can have one dozen test cases for each of one dozen funcs. All 144 tests are independant. I prefere the possibility to see all test errors in one go, if any.
> Anyway, there may be a flag STOP_AT_FIRST_TEST_ERROR (or the opposite).
> 
	In that case, you should have a dozen dozen different test blocks,
each for a single test case of a single function. Under Jonathan's
proposal, when a test block fails, it would stop the current *block*
(i.e. test case) but allow the remaining blocks to be run.

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101106/74d23eb2/attachment.pgp>


More information about the Digitalmars-d mailing list