grunt-mocha-chai-sinon
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "grunt-mocha-chai-sinon", | ||
"description": "MochaJS + ChaiJS + SinonJS Test Runner", | ||
"version": "0.0.1", | ||
"author": "Marco Pegoraro <marco.pegoraro@gmail.com>", | ||
"contributors": [], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/thepeg/grunt-mocha-chai-sinon" | ||
}, | ||
"keywords": [ | ||
"test", | ||
"grunt", | ||
"mocha", | ||
"chai", | ||
"sinon", | ||
"bdd" | ||
], | ||
"dependencies": { | ||
"mocha": "~1.14.0", | ||
"chai": "~1.8.1", | ||
"sinon": "~1.7.3" | ||
}, | ||
"devDependencies": {} | ||
"name": "grunt-mocha-chai-sinon", | ||
"description": "MochaJS + ChaiJS + SinonJS Test Runner", | ||
"version": "0.0.2", | ||
"author": { | ||
"name": "Marco Pegoraro", | ||
"email": "marco.pegoraro@gmail.com" | ||
}, | ||
"contributors": [], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/thepeg/grunt-mocha-chai-sinon" | ||
}, | ||
"keywords": [ | ||
"test", | ||
"grunt", | ||
"mocha", | ||
"chai", | ||
"sinon", | ||
"bdd" | ||
], | ||
"dependencies": { | ||
"mocha": "~1.14.0", | ||
"chai": "~1.8.1", | ||
"sinon": "~1.7.3", | ||
"blanket": "~1.1.5" | ||
}, | ||
"devDependencies": {}, | ||
"readme": "README.md", | ||
"readmeFilename": "README.md", | ||
"bugs": { | ||
"url": "https://github.com/thepeg/grunt-mocha-chai-sinon/issues" | ||
}, | ||
"_id": "grunt-mocha-chai-sinon@0.0.1", | ||
"_from": "grunt-mocha-chai-sinon@0.0.1" | ||
} |
@@ -37,2 +37,24 @@ grunt-mocha-chai-sinon | ||
## Test Coverage | ||
'grunt-mocha-chai-sinon': { | ||
build: { | ||
src: ['./specs/**/*.spec.js'], | ||
options: { | ||
ui: 'bdd', | ||
reporter: 'spec' | ||
} | ||
}, | ||
coverage: { | ||
src: ['./specs/**/*.spec.js'], | ||
options: { | ||
ui: 'bdd', | ||
reporter: 'html-cov', | ||
quiet: true, | ||
captureFile: './coverage.html' | ||
} | ||
} | ||
} | ||
[1]: http://gruntjs.com/ | ||
@@ -39,0 +61,0 @@ [2]: http://visionmedia.github.io/mocha/ |
@@ -7,2 +7,9 @@ /** | ||
var capture = require('../lib/capture'); | ||
require('blanket')({ | ||
// Only files that match the pattern will be instrumented | ||
pattern: '/src/' | ||
}); | ||
module.exports = function(grunt) { | ||
@@ -29,8 +36,29 @@ | ||
/* | ||
mocha.run(function (errCount) { | ||
done(errCount === 0); | ||
}); | ||
*/ | ||
capture(options.captureFile, options.quiet, function(complete) { | ||
try { | ||
mocha.run(function(errCount) { | ||
complete(null, errCount) | ||
}); | ||
} catch (err) { | ||
complete(err); | ||
} | ||
}, function(err, errCount) { | ||
if (err) { | ||
done(false); | ||
} else { | ||
done(errCount === 0) | ||
} | ||
}); | ||
}); | ||
}; |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
4521
5
80
1
64
4
1
+ Addedblanket@~1.1.5
+ Addedacorn@1.2.2(transitive)
+ Addedblanket@1.1.10(transitive)
+ Addedfalafel@1.2.0(transitive)
+ Addedforeach@2.0.6(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedxtend@4.0.2(transitive)