On a much smaller scale, the Oxygen editor has good built-in support for
XSpec, and I've grown to like it a great deal; when I write function
libraries in XSLT nowadays I always pair them with XSpec.
Cheers,
Martin
On 2019-07-27 2:06 p.m., Christophe Marchand cmarchand(_at_)oxiane(_dot_)com
wrote:
At Editions Lefebvre Sarrut - France - we have a strong requirement on
XSLT unit testing. We use XSpec, with xspec-maven-plugin [1], 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 [2] and AirQuick [3] 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 [4],
but not yet merged into main stream.
At this point, main dev stream is at [5] and builds are available in
maven at [6]
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
[1] - https://github.com/xspec/xspec-maven-plugin-1/
[2] - https://github.com/cirulls
[3] - https://github.com/AirQuick
[4] - https://github.com/Nico-Amplexor/xspec
[5] - https://github.com/xspec/xspec
[6] - http://repo1.maven.org/maven2/io/xspec/
Le 26/07/2019 à 22:55, Edward Porter edward(_dot_)porter(_at_)sas(_dot_)com a
écrit :
There’s 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
we’ve 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 can’t
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!
-Edward
XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/2837134>
(by email)
XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/1309990>
(by email <>)
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--