Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Whiskey is a powerful test runner for Node.js applications and a process orchestration framework which makes running integration tests with a lot of service / process dependencies easier.
JavaScript Shell CSS

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
example
lib
test
LICENSE
Makefile
README.md
index.js
package.json

README.md

Whiskey

Whiskey is a simple test runner for NodeJS applications.

Features

  • Each test file is run in a separate process
  • Support for a test file timeout
  • Support for a "failfast mode" (runner exits after a first failure)
  • setUp / tearDown methods support
  • Support for a global initialization file / function which is run before all the tests
  • Nicely formatted output (colors!)

TODO

Screenshot

Console output

Dependencies

  • optparse-js
  • async
  • sprintf

Changes

  • 26.03.2011 - v0.2.0

    • Add support for the failfast mode (runner exists after a first failure)
    • User can specify custom test timeout by passing in the --timeout argument
    • Add support for a setUp and tearDown function
    • Add colors to the output
    • Now each test file must export all the test functions so the runner can iterate over them
    • Add support for a global initialization file / function (init function in this file is run before all the tests in a main process and can perform some kind of global initialization)
    • Add support for --chdir argument
  • 25.03.2011 - v0.1.0

    • Initial release (refactor module out from Cast and move it into a separate project)

Installation

Install it using npm: npm install whiskey

Usage

whiskey --tests <test files> [options]

Example

For examples check the example folder.

Something went wrong with that request. Please try again.