Skip to content

Commit

Permalink
Merge pull request #104 from dira/patch-1
Browse files Browse the repository at this point in the history
Added a section on how to run the tests.
  • Loading branch information
cjohansen committed Apr 3, 2012
2 parents dd2dcc7 + 5c443f9 commit 63d828c
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions README.md
Expand Up @@ -2,13 +2,13 @@

Standalone and test framework agnostic JavaScript test spies, stubs and mocks.

## Installation
## Installation

via [npm (node package manager)](http://github.com/isaacs/npm)

$ npm install sinon

or install via git by cloning the repository and including sinon.js
or install via git by cloning the repository and including sinon.js
in your project, as you would any other third party library.

Don't forget to include the parts of Sinon.JS that you want to use as well
Expand All @@ -27,11 +27,31 @@ See the [sinon project homepage](http://sinonjs.org/)
* Easily fake any interface
* Ship with ready-to-use fakes for XMLHttpRequest, timers and more

## Develop?
## Develop?

Check out [todo.org](http://github.com/cjohansen/Sinon.JS/raw/1.0.0/todo.org) in the project repository

## Running tests on Rhino
## Run the tests


### On Node

$ node test/node/run.js

### In the browser, via JsTestDriver

* Install [Node.js](http://nodejs.org/) & [NPM](http://npmjs.org/)
* `$ npm install buster-format`
* Install Java
* Download [jsTestDriver](http://code.google.com/p/js-test-driver/)
* Start the JsTestDriver server
`$ java -jar JsTestDriver.jar --port 4224`
* Open a browser, go to [http://localhost:4224/](http://localhost:4224) and click 'Capture this Browser'
* run the tests
`$ java -jar JsTestDriver.jar --tests all --reset`


### On Rhino

I've added a rudimentary setup for running the tests on Rhino with env.js (as
this is a fairly common test setup, Sinon should support it). The files are
Expand Down

0 comments on commit 63d828c

Please sign in to comment.