Permalink
Browse files

Merge pull request #104 from dira/patch-1

Added a section on how to run the tests.
  • Loading branch information...
2 parents dd2dcc7 + 5c443f9 commit 63d828cbc58710f49d445e39b6683c60b9515f35 @cjohansen cjohansen committed Apr 3, 2012
Showing with 24 additions and 4 deletions.
  1. +24 −4 README.md
View
@@ -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
@@ -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

0 comments on commit 63d828c

Please sign in to comment.