alsatian-test / tap-bark

Alsatian's default tap reporter
MIT License
0 stars 1 forks source link

tap-bark

TAP parser for Alsatian.

npm license Linux and OSX Build Status Windows Build Status Coverage Status Known Vulnerabilities Code Climate Issue Count bitHound Code bitHound Dependencies

Usage

You can use TAP Bark via the CLI or Node, Huzzah!!!

CLI

// an example using alsatian
alsatian "**/*.spec.js" --tap | tap-bark

// or another test framework
another-test-framework --your-flags | tap-bark

Node

import { TapBark } from "tap-bark";

...
    // create tap bark instance
    const bark = TapBark.create();

    // setup the streams
    resultsStream.pipe(bark.getPipeable()) // pipe the TAP stream to TAP Bark
                 .pipe(process.stdout);    // then TAP Bark's output to the console (or a file if you so wish)
...