Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Alias (5735)

Alias
  (email not shown publicly)
http://ali.as/

Journal of Alias (5735)

Monday March 14, 2005
08:41 PM

Introducing Test::Inline 2.00

[ #23653 ]
I really liked the Test::Inline module, but when I looked at it a bit closer I found that it only worked one file at a time, and it was fairly limited in what it could do.

So about a year ago I set out to write a better and more enterprisey version, which I've been using in my company's code generation system and gradually evolving towards perfection.

It's finally reaching the point where I can't think of anything else that it needs, and so I'm hoping to release it some time soon.

To give you a sneak preview, Test::Inline 2 will let you define things like this.

=begin testing method after othermethod Needed::Module 25

25 tests here

=end testing

The test compiler supports per-method and per-class dependencies to help control the test execution order and make sure that the first error you encounter is more likely to be the root error.

It also support per-section and entire-script test counting, and can recursively slurp in entire trees of code, producing test scripts on a per-class basis, so that if you have a large file with multiple classes, you get one test script per class still.

My largest current use in the code generation system reads in about 50-100 modules and produces around 5000 lines of test code. About 11,000 test vectors.

I've become so addicted to the ease of testing it has provided me, I can't see myself going without it ever again for a large project.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • If you want the namespace on CPAN its yours. I've finally shed the delusion that I'll ever get around to maintaining Test::Inline.