Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
ass
is a small node.js code coverage library with the following features:
The philosophy behind ass
is that implementing code coverage should
be a trivial process. That no pre or post processing should be
required. That the code coverage library should itself handle
reporting (not require support from your test framework). And
finally, that code coverage data should be programatically accessible.
To get started with ass, first install it:
npm install --save-dev ass
Then instrument processes that are run by your test harness by adding a
single "stub" file (say your original server was in server.js
, let's assume
you name the stub stub.js
):
require('ass');
require('./server.js');
Finally, you can enable testing in your test harness programatically:
var ass = require('ass').enable();
// .. run all of your tests, spawning instrumented processes
ass.report('html', function(err, report) {
require('fs').writeFileSync('coverage.html', report);
});
A full example of code coverage is available:
$ git clone git://github.com/lloyd/ass
$ cd ass/example
$ npm install
$ npm test
$ open coverage.html
MIT
The infamous Zach Carter created our fantastic logo.
The design of the html reporter was lifted from TJ Holowaychuk's fantastic mocha test framework.
FAQs
A flexible node code coverage library with multiple-process support.
The npm package ass receives a total of 9 weekly downloads. As such, ass popularity was classified as not popular.
We found that ass demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.