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

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.
  • Test::RelaxNG and Test::YAML (the hypothetical one) are in different categories IMHO. RelaxNG is XML specific validation YAML, otoh, is just a format Validating the data (not the serialization of the data) seems to be what you care about, so why not just use Test::Deep? It's complete, robust, well tested, featureful... I don't see why a data validation test suite has to be redone for every serliazation format out there. In fact, I'd much rather see RelaxNG validation become applicable to non XML formats whenever possible, for instance any object tree that implements Tree::XPathEngine, instead of being tied to the plain text format that is XML. I think that Test::JSON, Test::YAML etc should actually converge on to something more Test::YAML::Valid like, leaving the data validation to something less encumbered with formats. It's also more informative to fail the "badly formatted" test separately from the "failed validation" test.