Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philschatz/xslt-coverage
Code coverage for XSLT files
https://github.com/philschatz/xslt-coverage
Last synced: 6 days ago
JSON representation
Code coverage for XSLT files
- Host: GitHub
- URL: https://github.com/philschatz/xslt-coverage
- Owner: philschatz
- Created: 2020-03-13T06:58:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-15T21:33:24.000Z (about 2 years ago)
- Last Synced: 2024-11-19T15:56:21.374Z (2 months ago)
- Language: XSLT
- Size: 86.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xslt-coverage
## Prerequisites
1. Install [saxon-he 9.9](https://sourceforge.net/projects/saxon/files/Saxon-HE/9.9/) (or `brew install saxon`)
1. Download [xspec/xspec](https://github.com/xspec/xspec)
1. Set `SAXON_HOME` and `XSPEC_HOME` to point to their respective directories## Usage
```sh
./xslt-coverage.bash ${input_xsl} ${input_xml} ${output_coverage_json} ${optional_output_xml}# Generate Istanbul-compatible coverage files
node mergeCoverageFiles.js cov1.json cov2.json cov3.json ... > coverage/coverage-final.json
```## Verification
1. Run `bash ./test-coverage.bash` to generate a `coverage/coverage-final.json`
1. Install [vscode-coverage-highlighter](https://github.com/pilat/vscode-coverage-highlighter)
1. Open [./cnxml-to-html5.xsl](./cnxml-to-html5.xsl) in the editor and see the code coverage![xslt coverage](https://user-images.githubusercontent.com/253202/76597517-a73c2a00-64ce-11ea-9a86-9898cac674ec.png)