jamestalmage / istanbul-combine Goto Github PK
View Code? Open in Web Editor NEWeasily combine coverage from multiple istanbul runs in to a single report
License: MIT License
easily combine coverage from multiple istanbul runs in to a single report
License: MIT License
It would be very helpful for the command line to be able to process a .istanbul.yml config file.
One use case for this is:
Update minimatch to >= 3.02 to avoid the following deprecation warning in npm:
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
I've started seeing this issue a couple days ago. A week ago everything worked smoothly. Looks like our js source code was changed and somehow uncovered this bug.
"istanbul": "^0.4.5",
"istanbul-combine": "^0.3.0"
We are combining coverage from a set of files. Looks like calculation is fine, but the report generation is failed
=============================== Coverage summary ===============================
Statements : 29.37% ( 1614/5496 )
Branches : 9.96% ( 442/4436 )
Functions : 28.57% ( 932/3262 )
Lines : 30.26% ( 1276/4217 )
================================================================================
node_modules/istanbul-combine/node_modules/istanbul/lib/report/html.js:283
text = structuredText[startLine].text;
Another possible reason can be that we switched from angulajs-1.7.0 to angularjs-1.7.3 a month ago
in dependency you have "istanbul": "0.3.x", but you can update to new version "0.4.2"
It looks like this is probably an unnecessary module, and that istanbul report json
will do the same thing:
Usage: istanbul report <options> [ <format> ... ]
Options are:
--config <path-to-config>
the configuration file to use, defaults to .istanbul.yml
--root <input-directory>
The input root directory for finding coverage files
--dir <report-directory>
The output directory where files will be written. This defaults
to ./coverage/
--include <glob>
The fileset pattern to select one or more coverage files,
defaults to **/coverage*.json
--verbose, -v
verbose mode
<format> is one of
clover XML coverage report that can be consumed by the clover tool
cobertura
XML coverage report that can be consumed by the cobertura tool
html Navigable HTML coverage report for every file and directory
json prints the coverage object as JSON to a file
json-summary
prints a summary coverage object as JSON to a file
lcov combined lcovonly and html report that generates an lcov.info
file as well as HTML
lcovonly
lcov coverage report that can be consumed by the lcov tool
none Does nothing. Useful to override default behavior and suppress
reporting entirely
teamcity
report with system messages that can be interpreted with TeamCity
text text report that prints a coverage line for every file, typically
to console
text-lcov
lcov coverage report that can be consumed by the lcov tool
text-summary
text report that prints a coverage summary across all files,
typically to console
Has anyone written a gulp wrapper for using this or have an example of creating one?
I try to use check option to set minimum percentage required. But no error raised in callback or promise...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.