template-loader-lcov-fix
v0.1.2
Published
Fixes the URL paths in an LCOV file output with for angular2-template-loader
Downloads
4
Readme
template-loader-lcov-fix
Transform module for changing the file paths of LCOV source files within an LCOV file that uses the angular2-template-loader for code coverage. Handles individual calls or streams (e.g., stdin and stdout).
Table of Contents
Use
To use this module, install it and integrate it into your code coverage publishing pipeline.
See the gulpfile for tasks related to building the module.
Install
Install this module globally via npm install -g template-loader-lcov-fix
or as a devdependency.
Usage
The intended use of this module is to act as a transform pipe for LCOV files that include paths to angular2-template-loader outputs. Once it is available on the path, it can accept a file path and output the fixed / transformed file that includes source paths that do not include the angular2-template-loader prefix. For example:
template-loader-lcov-fix < lcov.original > lcov.fixed
API
Contribute
PRs accepted.
License
See LICENSE for details