Running Scenarios - xspec/xspec GitHub Wiki
In order to run the tests, the XSpec test suite is compiled into a stylesheet or a query which imports the stylesheet or query being tested. Running this compiled stylesheet or query results in an XML document that holds the test results. This XML report is then formatted into an HTML report.
Several facilities are provided for you to perform this pipeline:
Shell/Batch Scripts
Note that you will have to set up the environment variables to match the location of Saxon on your system. Make sure that you follow the installation instructions for Mac/Linux or Windows before running the script. To run the shell/batch scripts, run the following command from the XSpec root directory.
For Mac/Linux:
bin/xspec.sh my-tests.xspec
For Windows:
bin\xspec.bat my-tests.xspec
Ant
If you prefer, you can run XSpec with Ant which is far faster and more feature-rich than the shell/batch scripts.
Other Environments
Other environments you can run XSpec with are Maven and XProc.