RE: xprocspec - A tool for testing XProc scripts

Sounds like good work! Is depx.org still alive? Might be interesting to
integrate bits of unit testing into depx packages..



Grtz



*Van:* Jostein Austvik Jacobsen [mailto:josteinaj@gmail.com]
*Verzonden:* dinsdag 9 juli 2013 12:36
*Onderwerp:* xprocspec - A tool for testing XProc scripts



I've been working on a tool for testing XProc scripts for a little while
now. It is based purely on XProc, but depends on Calabash for dynamic
evaluation of pipelines <http://xmlcalabash.com/docs/reference/cx-eval.html>
.



The project is called xprocspec and can be found here:
http://josteinaj.github.io/xprocspec/



Some features:

* Test grammar based on the XSLT-testing tool
XSpec<https://code.google.com/p/xspec/wiki/WritingScenarios>,
but somewhat modified to better suit XProc

* Use ports, errors, directory structures or files as test contexts

* Make assertions against the test contexts in terms of XPath expressions
or document comparisons



For anyone who wants to try it out; expect bugs. Check out the GitHub
repository and have a look at the bundled example.



Feedback appreciated!



Regards

Jostein

Received on Wednesday, 10 July 2013 13:39:34 UTC