npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

buster-coverage

v0.1.1

Published

Generate lcov data files from Buster.JS

Downloads

7

Readme

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.js to generage lcov files for everything listed in your source files. You will need lcov or something similar to generate meaningful reports.

It will output a coverage.lcov that 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_modules directory 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.js config file:

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

Configuration

By default it will write everything into the coverage subdirectory.

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.