tap-parser
A javascript tap file parser
Usage / Example
for the following tap file test-result.tap
1..4ok 1 - Input file openednot ok 2 - First line of the input valid.More output from test 2. There can be arbitrary number of lines for any output so long as there is at least some kind of whitespace at beginning of line.ok 3 - Read the rest of the file#TAP meta informationnot ok 4 - Summarized correctly # TODO Not written yet
get the content of your tap file as a string then put it in the parser:
var parser = tapFileString ; parser; // => trueparser; // => First line of the input valid parser; // => 4parser; // => 2parser; // => 2 parser; // => arbitrary number of (...) beginning of line. //loop on each testparsertests;
Install / Download
NPM
npm install simple-tap-parser
Bower
bower install simple-tap-parser
RequireJS
module is UMD compliant so you can load it with RequireJS
;
Old school
Copyright
tap-parser is released under the GPL v2.
Copyright (c) 2014 Franck Ernewein, See LICENSE for details.