This commit is contained in:
Лаврёнов Антон 2013-11-22 17:51:35 +08:00
parent 4d335ea492
commit 3dd208a44d

View File

@ -9,7 +9,7 @@ If you add a file in the src directory, be sure to add the filename to the sourc
[![Build Status](https://travis-ci.org/ericdrowell/KineticJS.png)](https://travis-ci.org/ericdrowell/KineticJS)
KineticJS uses Mocha for testing. If you haven't already, be sure to install the npm packages by running `npm install` in the project directory. Before testing you have to build KinetiJS by running `grunt dev`.The KineticJS tests must be run on a web server, so you also need to run `node server.js` in the project directory to start the node server. Once the server is running, open http://localhost:8080/test/runner.html to run the tests in your favorite browser. To run the tests in PhantomJS, run `mocha-phantomjs test/runner.html` in the console.
KineticJS uses Mocha for testing. If you haven't already, be sure to install the npm packages by running `npm install` in the project directory. Before testing you have to build KineticJS by running `grunt dev`.The KineticJS tests must be run on a web server, so you also need to run `node server.js` in the project directory to start the node server. Once the server is running, open http://localhost:8080/test/runner.html to run the tests in your favorite browser. To run the tests in PhantomJS, run `mocha-phantomjs test/runner.html` in the console.
KineticJS is covered with hundreds of tests and well over a thousand assertions. KineticJS uses TDD (test driven development) which means that every new feature or bug fix is accompanied with at least one new test.