carpetify
A browserify transform for the istanbul code coverage tool
Last updated 3 years ago by scripto-llc .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install carpetify 
SYNC missed versions from official npm registry.

carpetify

A browserify transform for the istanbul code coverage tool using the nyc CLI.

This is a fork of the original browserify-istanbul.

Installing

npm install --save-dev carpetify

Usage

This library should be used as a transform to your browserify bundle -- it will instrument the code in the bundle that doesn't match the ignore filter.

Please see the browserify repo for full instructions on how to use browserify plugins.

You can pass in several configuration options to the plugin:

  • defaultIgnore:boolean - use the default ignores or not
  • ignore:array(string) - an array of strings to pass to minimatch to ignore files.
  • stripBasePath:boolean - by default the full path to the file on your disk will be provided. This can be a problem if you want to use the default ignores but your parent directory contains one of the ignores. This will strip off the leading directories, allowing coverage to work

This will instrument all the code and generate a coverage report, attached to the window object in the browser. You'll likely need another tool to deal with this, you might want to check out:

License

MIT

Current Tags

  • 1.0.1                                ...           latest (3 years ago)

2 Versions

  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (5)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |