Skip to content

Commit

Permalink
Merge pull request #15 from bySabi/v2
Browse files Browse the repository at this point in the history
enhaced tap input parsed
  • Loading branch information
tmcw committed Jul 11, 2016
2 parents 2efe892 + df256f9 commit b2b4031
Show file tree
Hide file tree
Showing 8 changed files with 10,808 additions and 16,262 deletions.
7 changes: 7 additions & 0 deletions LICENSE
@@ -0,0 +1,7 @@
ISC License

Copyright (c) 2016 Tom MacWright

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
5 changes: 4 additions & 1 deletion README.md
@@ -1,7 +1,7 @@
# Karma TAP adapter

This adapter reads [TAP](http://testanything.org/) output from runners like
[tape](https://github.com/substack/tape) into [Karma](http://karma-runner.github.io/0.12/index.html).
[tape](https://github.com/substack/tape) into [Karma](http://karma-runner.github.io/1.0/index.html)

## Installation

Expand All @@ -22,3 +22,6 @@ module.exports = function(config) {
});
};
```

## TAP Protocol
Support TAP Protocol version `13`
6 changes: 4 additions & 2 deletions index.js
@@ -1,10 +1,12 @@
var path = require('path');

var createPattern = function(path) {
return {pattern: path, included: true, served: true, watched: false};
};

var initTAP = function(files, tapConfig) {
files.unshift(createPattern(__dirname + '/src/adapter.js'));
files.unshift(createPattern(__dirname + '/src/tap-parser.js'));
files.unshift(createPattern(__dirname + '/src/adapter.js'));
files.unshift(createPattern(__dirname + '/lib/parser.js'));
};

initTAP.$inject = ['config.files'];
Expand Down

0 comments on commit b2b4031

Please sign in to comment.