1.0.1 • Published 9 years ago

uto-node v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Univeral Test Output

Universal Test Output (UTO) is an alternative to Test Anything Protocol. The primary motivation is a cleaner syntax that retains readability. More information and the specification is available on Github.

Installation

$ npm install --save-dev uto-node

Usage (CLI)

Pipe UTO output to ./node_modules/.bin/uto. See ./node_modules/.bin/uto --help for more information.

Usage (API)

The core library is available as a Node module.

const uto = require('uto-node');

const stream = uto(process.stdin); // Can also pass a multiline string

stream.on('pragma', function (payload) {});

stream.on('comment', function (payload) {});

stream.on('pass', function (payload) {});
stream.on('skip', function (payload) {});
stream.on('fail', function (payload) {});

stream.on('open', function (payload) {});
stream.on('close', function (payload) {});

stream.on('error', function (payload) {});

stream.on('end', function (payload) {});