karma-tap
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125302
3606
25