From the Frontiers of Research to the Heart of the Enterprise
O'Reilly Open Source Convention
Sheraton San Diego Hotel and Marina
July 22-26, 2002 -- San Diego, CA
Writing a Test Library with Test::Builder and Test::Harness::Straps
Michael G. Schwern
Date: Friday, July 26
Time: 10:45am - 11:30am
Location: Grande Ballroom A
Writing a test library is harder than it looks. Test::Builder provides not only a starting point upon which you can start writing your own tests, but also allows any and all libraries built on top of it to be used together. For example, Test::Diffrences can be used in the same program as Test::More. This interoperability allows authors to write special-case test libraries without having to reimplement all the features offered in the generic ones. At the other end, Test::Harness::Straps (new with Test::Harness 2.00) allows you to get at the results of your test other than just by reading it off the screen. So you can dump your test results into a database, email people when something goes wrong, convert it into XML, put it up on a web page or make a cute little GUI.
oreilly.com Home |
O'Reilly Bookstores |
How to Order |
About O'Reilly |
Affiliated Companies |
© 2001, O'Reilly Media, Inc.