RE: xprocspec - A tool for testing XProc scripts

If you like depx, sharexml.com might interest you as well.. ;-)



*Van:* Jostein Austvik Jacobsen [mailto:josteinaj@gmail.com]
*Verzonden:* woensdag 10 juli 2013 16:46
*Aan:* Geert Josten
*CC:* XProc Dev
*Onderwerp:* Re: xprocspec - A tool for testing XProc scripts



Didn't know about depx; looks cool! I see in the FAQ that it intends to
support EXPath Packages. The packaged version of xprocspec is a JAR file
which contains a expath-pkg.xml at its root and all its source code is in
the "/content" directory, which should make it a valid EXPath package
(except for its file extension). I've also added a cxan.xml file.



xprocspec uses Maven for packaging, versioning, dependencies etc. (although
it doesn't currently depend on anything). I've also set up automatic
deployment of snapshots to the Sonatype Snapshots repository (search for
"xprocspec" at https://oss.sonatype.org/), and I plan to deploy stable
releases somewhere well. So any Maven project can add xprocspec as a
dependency. The project
@bertfrees/xproc-maven-plugin<https://github.com/bertfrees/xproc-maven-plugin>
will
make it very easy to run xprocspec tests using Maven. (i.e. simply run "mvn
test" to run the tests - xprocspec will be downloaded automatically if
necessary).








Jostein



On 10 July 2013 15:39, Geert Josten <geert.josten@dayon.nl> wrote:

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 20:16:14 UTC