Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
gulp-istanbul-report
Advanced tools
Readme
gulp plugin to create istanbul reports from pre-collected coverage files.
This gulp plugin creates reports using Istanbul from a stream of JSON coverage files (such as those generated by mocha-phantomjs-istanbul).
While gulp-istanbul works well for the basic scenario, operating directly on coverage files provides some flexibility that can come in handy when coverage information is collected elsewhere (e.g. in a browser).
$ npm install gulp-istanbul-report --save-dev
Here's an example using it together with mocha-phantomjs-istanbul:
var mochaPhantomJS = require('gulp-mocha-phantomjs');
var istanbulReport = require('gulp-istanbul-report');
var coverageFile = './coverage/coverage.json';
var mochaPhantomOpts = {
phantomjs: {
hooks: 'mocha-phantomjs-istanbul',
coverageFile: coverageFile
},
};
gulp.task('test', function () {
gulp.src('test-runner.html', {read: false})
.pipe(mochaPhantomJS(mochaPhantomOpts))
.on('finish', function() {
gulp.src(coverageFile)
.pipe(istanbulReport())
});
});
A list of reporters to use. See require('istanbul').Report.getReportList()
.
You can specify either just a name of the reporter as string, or an object with the name specified in name
, where the other fields are treated as options for the reporter. Example:
istanbulReport({
reporters: [
'text-summary', // outputs summary to stdout, uses default options
{name: 'text', file: 'full.txt'} // writes full report to file
]
})
The directory that reports should be written to. Will be applied to all reporters that don't explicitly override it.
Default options to be applied to reporters who don't explicitly override them.
istanbulReport({
reporterOpts: {
dir: './coverage'
},
reporters: [
{'name': 'text', file: 'report.txt'}, // -> ./coverage/report.txt
{'name': 'json', file: 'cov.json', dir: './jsonCov'} // -> ./jsonCov/cov.json
]
})
FAQs
write istanbul coverage reports from pre-collected coverage files
The npm package gulp-istanbul-report receives a total of 894 weekly downloads. As such, gulp-istanbul-report popularity was classified as not popular.
We found that gulp-istanbul-report demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.