Home > js.test

js.test

Js.test is a project mainly written in JavaScript, based on the Apache-2.0 license.

A very basic cli-oriented unit testing framework for JavaScript using Rhino as the Engine. This is very vaguely inspired by py.test.

Prerequisites

Before using js.test you will need to have rhino installed.

Installation

In order to install js.test, pull the repo from git:

$ git clone git://github.com/AlexandreZani/js.test.git

Then run 'make install'

$ cd js.test $ make install

Basic Usage

'js.test' will search the current directory subtree for test suites and run them.

'js.test foo' will run the test suites contained in file foo.

Sample

$ cd samples $ js.test

Previous:Just4Fun