develooper Front page | | Postings from January 2005

Re: Test::Unit, ::Class, or ::Inline?

Thread Previous | Thread Next
Michael G Schwern
January 27, 2005 12:42
Re: Test::Unit, ::Class, or ::Inline?
Message ID:
On Thu, Jan 27, 2005 at 05:48:15PM +0100, Tels wrote:
> If I understand the current test model correctly, the seperation also has 
> the advantage that if the test dies, the parser is largely unaffected. It 
> even tells you *where* it died (e.g. "after test #7"). If you have 
> test/parser in one process, a die() might tear it down completely, and 
> you get only "test process died" out of it.

It would have to be something beyond a normal die() or exit() because those
can all be trapped.  A segfault for example.  But yes, it does mean we can
test ourself with ourself no matter what.

It also avoids mucking up the test environment so each test script knows
exactly what's been loaded.

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