Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

istanbul-text-full-reporter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

istanbul-text-full-reporter

Text based coverage reporter for Istanbul code coverage

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Istanbul text-full reporter

Text based coverage reporter for Istanbul code coverage

With istanbul

To register and use with istanbul:

var report = require('istanbul-text-full-reporter');
istanbul.Report.register(report);

var reporter = new istanbul.Reporter();
reporter.add('text-full');
reporter.write(collector, false, function() {
    console.log('Report written');
});

You can also provide options to the reporter:

var reporter = new istanbul.Reporter({
    root: '/path/to/project'
    thresholds: {
        global: {
            statements: 100,
            branches: 100,
            lines: 100,
            functions: 100
        },
        each: {
            statements: 100,
            branches: 100,
            lines: 100,
            functions: 100
        }
    }
});
  • root defines the project root, file paths are shown relative to this directory, defaults to the process directory
  • thresholds can be defined with positive percentages or negative values (for number of allowed coverage gaps), defaults to 100% for all thresholds

With gulp istanbul

Add as a value in the reporter array option:

var report = require('istanbul-text-full-reporter');
gulp.src(['example.js'])
    .pipe(mocha())
    .pipe(gulpIstanbul.writeReports({
        reporters: [report]
    }));

FAQs

Package last updated on 29 Apr 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc