develooper Front page | | Postings from March 2009

Re: Counting tests

Thread Previous | Thread Next
Fergal Daly
March 16, 2009 11:23
Re: Counting tests
Message ID:
2009/3/15 Adrian Howard <>:
> On 14 Mar 2009, at 05:57, Michael G Schwern wrote:
> [snip]
>> The test numbering exists to ensure that all your tests run, and in the
>> right
>> order.  XUnit frameworks don't need to know the number of tests because
>> they
>> simply don't have this type of protection. [1]
> [snip]
> And, to some extent, need it less. Since most xUnit systems have the
> test-result-producer and the test-result-consumer running in the same
> process space - some of the problems that plans help with (like early
> termination) aren't really much of an issue.

Really? I know of at least one automated test runner (by this I mean
it runs all the test files it can find) for pyunit that would say
is fine" if I through a random sys.exit(0) into my test script.
Without parsing the output, there's not much else to look at but the
exit code and by having the producer and consumer in the same process,
the producer can easily set the exit code against the "will" of the


> Cheers,
> Adrian
> --
> - -

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About