Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

karma-tap

Package Overview
Dependencies
Maintainers
31
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-tap - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "karma-tap",
"version": "1.0.0",
"version": "1.0.1",
"description": "adapter from karma to the tape testing framework",

@@ -5,0 +5,0 @@ "main": "index.js",

# Karma TAP adapter
This adapter reads [TAP](http://testanything.org/) output from runners like
[tape](https://github.com/substack/tape) into Karma.
[tape](https://github.com/substack/tape) into [Karma](http://karma-runner.github.io/0.12/index.html).
## Installation
npm install --save-dev karma-tap
## Configuration Example
```js
module.exports = function(config) {
config.set({
frameworks: ['browserify', 'tap'],
files: [
'test/*.js'
],
preprocessors: {
'test/**/*.js': [ 'browserify' ]
}
});
};
```
var createStartFn = function(tc, env) {
var numResults = 0;
var parse_stream = tapParser(function(results) {
tc.complete();
tc.info({ total: numResults });
tc.complete({
coverage: window.__coverage__
});
}).on('assert', function(assertion) {
numResults++;
tc.result({
description: assertion.name,
success: assertion.ok,
log: [],
suite: []

@@ -9,0 +15,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc