Slash Boxes
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 ]

Journal of LTjake (4001)

Tuesday July 31, 2007
08:52 AM

New URI::Template release with generic test suite

[ #33928 ]

URI::Template 0.08_02 should be hitting CPAN shortly. This release conforms to the latest uri-template spec released this month.

I've always been interested in portable/generalized test suites. Sam Ruby mentions that he'd like to see feedparser's test suite generalized. This would be great for someone who would like to ensure their feed parser handle a variety of well-formed and ill-formed feed data that you might find anywhere on the web.

Similarly, I've decided to serialize some tests, currently just the ones outlined in the spec, as a JSON file. A simple driver script will go through all of the JSON files in the dist and run the tests. This means we (the royal we? :) could develop a generic test suite for URI Template implementers.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I had a similar idea about generic test suites after writing the tests for Class::LazyObject and realizing that most of them could be run against similar modules because they were just a generic test of Perl's object system.

    I like the driver idea, but I'm wondering if we could go even further and figure out a good way to package generic test suites for the CPAN. Expect another use.perl entry from me when I've thought a little more about this.