buster-coverage

Generate lcov data files from Buster.JS

Unmaintained

Unfortunately I wasn't able to give buster-coverage the love it deserves if you're interested to take this project over please get in contact with me.

buster-coverage

An extension for buster.jsto generage lcov files for everything listed in your sourcefiles. You will need lcovor something similar to generate meaningful reports.

It will output a coverage.lcovthat combines all browser into a single file and a separated file for each client that was connected during the testrun.

Installation

Not yet released on npm, so go to your node_modulesdirectory and clone it:

git clone git://github.com/ebi/buster-coverage.git

Then link it:

cd buster-coverage
npm link

Then add it to your buster.jsconfig file:

config["My tests"] = {
  extensions: [ require("buster-coverage") ]
};

Configuration

By default it will write everything into the coveragesubdirectory.

Example Configuration

config["My tests"] = {
  extensions: [ require("buster-coverage") ],
  "buster-coverage": {
    outputDirectory: "coverage_reports", //Write to this directory instead of coverage
    format: "cobertura", //At the moment cobertura and lcov are the only ones available
    combinedResultsOnly: true, //Write one combined file instead of one for each browser
    coverageExclusions: ["resources"] //Exclude everything with resources in it's path
  }
};

Generating reports

To generate a basic report you can just run:

genhtml coverage/coverage.lcov -o report

License

Copyright 2012, Tobias Ebnöther.

Released under the BSD license.

HomePage

https://github.com/ebi/buster-coverage

Repository

https://github.com/ebi/buster-coverage


上一篇:coverage-helpers
下一篇:autolint

相关推荐

  • 从零搭建自己的js工具库 typescript+rollup+karma+mocha+coverage

    前言 随着公司产品线的增多,开发维护的项目也越来越多,在业务开发过程中,就会发现经常用到的cookie处理,数组处理,节流防抖函数等工具函数,这些工具函数在很多的项目中会使用到,为了避免一份代码多...

    7 个月前
  • yuitest-coverage

    Node.js wrapper for yuitestcoverage java package YUI Test Coverage Node.js Module =================...

    8 个月前
  • unit-coverage

    unitcoverage Build Status(https://travisci.org/unitcoverage/unitcoverage.svg?branch=master)(http...

    1 年前
  • type-coverage

    A CLI tool to check type coverage for typescript code typecoverage Docs: Repository https://...

    2 个月前
  • solidity-coverage

    soliditycoverage Gitter chat(https://badges.gitter.im/scforks/soliditycoverage.svg)18 npm (tag)(...

    3 个月前
  • pixbi-jscoverage

    a javascript coverage tool, can be used in node dev, and browser side js dev jscoverage ========== ...

    9 个月前
  • node-coverage

    nodecoverage is a tool that measures code coverage of JavaScript application. nodecoverage nodeco...

    8 个月前
  • karma-remap-coverage

    Karma reporter that shows coverage for original non transpiled code (TypeScript, ES6/7, etc) karma...

    1 年前
  • karma-coverage-istanbul-reporter

    A karma reporter that uses the latest istanbul 1.x APIs (with full sourcemap support) to report cove...

    2 年前
  • karma-coverage

    A Karma plugin. Generate code coverage. karmacoverage jsstandardstyle(https://img.shields.io/badg...

    2 年前

官方社区

扫码加入 JavaScript 社区