https://github.com/holyshared/json2lcov
The report data of a json-cov format are changed into a lcov format
https://github.com/holyshared/json2lcov
Last synced: 11 months ago
JSON representation
The report data of a json-cov format are changed into a lcov format
- Host: GitHub
- URL: https://github.com/holyshared/json2lcov
- Owner: holyshared
- License: mit
- Created: 2013-10-06T13:37:57.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-04-15T01:51:34.000Z (about 10 years ago)
- Last Synced: 2025-07-20T01:30:21.747Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 35.2 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
json2lcov
===============================================================
[](http://badge.fury.io/js/json2lcov)
[](https://travis-ci.org/holyshared/json2lcov)
[](https://coveralls.io/r/holyshared/json2lcov?branch=master)
[](https://gemnasium.com/holyshared/json2lcov)
[](https://waffle.io/holyshared/json2lcov)
The report data of a **json-cov** format are changed into a **lcov** format.
A conversion result is string.
Install
---------------------------------------------------------------------------------------------------------
npm install json2lcov --save-dev
How to use
---------------------------------------------------------------------------------------------------------
var jsoncovToLcov = require('json2lcov');
var lcov = jsoncovToLcov(jsonCovResult);
console.log(lcov);
UnitTest
---------------------------------------------------------------------------------------------------------
npm install -g mocha mocha-lcov-reporter jscoverage
npm install
npm test