W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > June 2007

unit testing Xproc thoughts

From: James Fuller <james.fuller.2007@gmail.com>
Date: Thu, 7 Jun 2007 22:07:26 +0200
Message-ID: <a0ad8ffe0706071307p13196579y96c37134876edd09@mail.gmail.com>
To: public-xml-processing-model-comments@w3.org


I would like to be able to write unit tests in Xproc to test Xproc pipelines.

At a minimum I would propose some sort of p:assert task that compares
values....typically xml trees. From an implementators viewpoint, this
could be as simple as wrapping up xmlunit.

Other ideas could be;

* adding an xpath attribute to p:assert to test for things (ala
schematron style assertions).

* testing for the existence of file items like perl's Test::Files

The output of such tests should be similar to XML output of other unit
testing type packages....

Have the WG for XML Processing thought about this scenario?

cheers, Jim Fulller
Received on Thursday, 7 June 2007 20:07:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:24 UTC