New URI::Template release with generic test suite

LTjake on 2007-07-31T13:52:22

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.


Generic Test Suites

DAxelrod on 2007-08-01T02:38:02

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.