Questions tagged [xspec]

XSpec is a unit test and Behaviour Driven Development (BDD) framework for XSLT and XQuery.

The wiki for the XSpec project : https://github.com/expath/xspec/wiki

28 questions
0
votes
2 answers

xspec: failure when expected and result are the same

I use xspec for testing of stylesheets. Most of the time it works fine, but once in a while tests fail without a valid reason: the expected and the actual result are the same. Seemingly: everything is green in the comparison screen. In that case,…
ruud
  • 743
  • 13
  • 22
0
votes
1 answer

XSPEC: What is meaning of Expected Result 'XPath / from:' on test report?

I'm new at XSPEC I try to run the following test:
C. Mar
  • 139
  • 1
  • 2
  • 16
0
votes
0 answers

Problem with namespaces when generating kml dynamically

I am using a test-driven-development process to create some xslt to create kml data dynamically. With xslt I use xspec to manage the tests. And I am experiencing a default namespace problem. The xsl stylesheet has a large number of namespace…
Feargal Hogan
  • 169
  • 1
  • 8
0
votes
1 answer

How to remove test:ws element from x:expect result in XSpec

Expected result throw by xspec: Expected result i want is our desired output element:
0
votes
1 answer

Does Azure DevOps supports xspec

We are using Azure DevOps for our repositories. Our code consist of XSLT's for its validation we have written XSpecs. For CI/CD process we are planning to implement Pipelines rather than jenkins, but not able to get the information whether Azure…
0
votes
1 answer

Get Xspec test results with inline CSS within Ant

Xspec delivers HTML reports with test results. I'm looking for a way to avoid having an absolute path to a CSS file in the Xspec report. I saw that there is a command-line option -i to place the CSS inline in the HTML page. The script version uses…
Rolf
  • 3
  • 4
0
votes
2 answers

Time of execution of a command while is running

I have a command in a line (Fit.perform() from import xspec, but never mind because the question is general and can be applicated also for other python commands) that takes a while to finish. I simple want to know the time of execution while the…
Alessandro Peca
  • 873
  • 1
  • 15
  • 40
0
votes
2 answers

Running XSpec with Maven and Saxon-PE7

We want to run XSpec as part of our Maven builds to check our XSL transformations. A plugin is available from GitHub. The problem arises when the XSL-stylesheets we check against invoke functions are not available in the Saxon-HE, looking like…
styps
  • 279
  • 2
  • 14
0
votes
1 answer

How to implement a Xspec unit testing?

Does anyone know how to test this simple code using the XSpec in XSLT?
DanielCSD
  • 73
  • 1
  • 8
0
votes
0 answers

Some elements are not processed in Test Cases with XSpec

I am XSLT developer and now a days I got an error on written test case using XSpec. This is the test case I wrote
user2490093
  • 69
  • 10
0
votes
1 answer

XSLT: Test the contents of a result-document in XSpec?

I'm writing a program that uses XSLT and need to test the contents of a result-document call in Xspec. In the example below, I would like to test the contents of result.xml. If this is possible, how do you do this? XML: test.xml
user1428945
  • 339
  • 1
  • 13
0
votes
1 answer

How do I get code coverage from XSpec

I am using XSpec at work for XSL unit tests. I see XSpec as a coverage option but I cannot get it to work. I get this error: "Transformation failed: Failed to load com.jenitennison.xslt.tests.XSLTCoverageTr aceListener Testing with SAXON…
Tyson
  • 95
  • 2
  • 10
0
votes
1 answer

XSpec / Saxon - EXSLT format-date

I'm using XSpec (with Saxon EE 9) to test some XSLT 1.0 transforms. They work fine for the most part, except for the following EXSLT extension:
Jamie
  • 611
  • 1
  • 5
  • 20
1
2