test-result
A simple module to mark the result of your tests
Last updated 12 years ago by forbeslindesay .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install test-result 
SYNC missed versions from official npm registry.

test-result

A simple module to mark the result of your tests

Build Status Dependency Status NPM version

Installation

npm install test-result

Usage

var result = require('test-result');

// if tests passed
result.pass('the best tests');
// if tests failed
result.fail('the worst tests');

On the server

It will log a message for test pass or fail. It will also process.exit(1) if the tests failed.

On the client

It will log a message for test pass or fail if the browser has console support. It will also count the number of completed, passed and failed tests in three counters, initialized as:

window.TESTS_COMPLETE = 0;
window.TESTS_PASSED = 0;
window.TESTS_FAILED = 0;

License

MIT

Current Tags

  • 2.0.0                                ...           latest (12 years ago)

3 Versions

  • 2.0.0                                ...           12 years ago
  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE