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 ]

samtregar (2699)

  (email not shown publicly)

Journal of samtregar (2699)

Wednesday October 01, 2003
12:05 PM

Testing the Test Suite

[ #15005 ]
XML::Validator::Schema's test suite uses a set of YAML files, each of which contains a schema, one or more documents and a list of expected results (PASS, FAIL, etc). For the most part I've written these files by hand, although some contain output from XML Spy or text copied from the XML Schema spec.

It occured to me that I didn't know for certain whether these tests were correct. So I added a test script which runs them against the Xerces/C++ schema validator, if it's installed. This turned up a number of errors in my understanding of the spec which would have been very hard to find otherwise.

Lesson: don't just test your code, test your tests too!


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.