busterjs coverage extension
Add buster-istanbul as a dependency in your package.json file.
{
"name": "awesome name",
...
"dependencies": {
"buster-istanbul": "*"
}
}
Configure buster to use buster-istanbul as extension
module.exports.tests = {
environment: "node",
rootPath : "./",
sources: [
"src/**/*.js"
],
tests : [
"test/**/*-test.js"
],
extensions: [
require('buster-istanbul')
]
};
sources
will be the files that will be instrumented.
Write your buster test as usual.
Example project: buster-istanbul-demo
Copyright (c) 2012 kates
Licensed under the MIT license.