Subject: [xsl] Re: XSpec and XSL Testing|
From: "Martin Holmes gtxxgm-xsl-list-2@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 27 Jul 2019 21:16:47 -0000
At Editions Lefebvre Sarrut - France - we have a strong requirement on XSLT unit testing. We use XSpec, with xspec-maven-plugin , which produces JUnit / Surefire test report, that is perfectly integrated in CI tools (Jenkins, SonarQube).
All our projects, even XSL-only projects, are maven projects. An important point of xspec-maven-plugin is the ability to choose which Saxon you use (HE, PE, EE), and, if you have your own build of Saxon available in a maven repo, you can use it for XSpec.
We are currently testing XSpec on Schematron, and try to find a solution to unit test RNG with XSpec too...
Sandro Cirulli  and AirQuick  have done a real great job to bring XSpec up to XST 3.0 level, and to support correctly XQuery & Schematron - there is still some jobs to finalize...
For real specific cases (including xsl:error testing), you use JUnit, as XSpec is not able to catch errors. There is some job around this , but not yet merged into main stream.
At this point, main dev stream is at  and builds are available in maven atB 
As far as XProc 3.0 goes, Editions Lefebvre Sarrut have some plans on using XSpec for XProc unit testing. It requires a lot of XSpec language evolutions, but there is a lot of promises...
XSpec is still alive !
Best regards, Christophe
 - https://github.com/xspec/xspec-maven-plugin-1/  - https://github.com/cirulls  - https://github.com/AirQuick  - https://github.com/Nico-Amplexor/xspec  - https://github.com/xspec/xspec  - http://repo1.maven.org/maven2/io/xspec/
Le 26/07/2019 C 22:55, Edward Porter edward.porter@xxxxxxx a C)critB :XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
Therebs been some renewed interest in the possibility of unit testing in my organization, and some folks have brought up XSpec as a possible avenue towards more robust testing during development. We leverage a fairly large number of Java extensions, our pipeline is all Java, and webve extended Saxon a fair bit as well. For these reasons, I am having a hard time envisioning how to integrate XSpec. We already have quite a large array of regression tests and a good testing team, but the concept of catching regressions during development is appealing.
What are you all doing these days for testing? Are there large scale implementations of XSpec in the wild with complex pipelines? I canbt find too many examples on the net. I found a brief discussion of this topic several years ago on this listserv, but I wondered if there were any developments/good experiences since then.
Thanks in advance!
XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/2837134> (by email)
EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/1309990> (by email <>)