On Tue, Mar 08, 2005 at 02:29:22PM -0600, Andy Lester wrote: > On Tue, Mar 08, 2005 at 12:21:35PM -0800, Michael G Schwern ([EMAIL > PROTECTED]) wrote: > > > Also, in thinking through the reorg of Test::Builder, it would be great > > > if the notion of "success" or "failure" could be isolated from any > > > particular form of output. That would mean that someone could use > > But T::B doesn't really think about "success" or "failure".
Sorry to contradict, but yes it does. All the test methods return if they passed or failed. That's how the "ok( open FILE, "foo" ) || diag $!" idiom works. Additionally the results of all the tests are available via ->summary() and in further detail via ->details() which makes the distinction between "this test passed" and "this test failed but we're considering it a pass (ie. todo)".