Skip to content

Commit

Permalink
README file updated and README file for test created.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jairo de Morais committed Mar 20, 2012
1 parent 1523ad6 commit da9a89a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 18 deletions.
18 changes: 0 additions & 18 deletions README.md
Expand Up @@ -52,24 +52,6 @@ Extensive docs and a full demo are available at <http://akdubya.github.com/dustj

------------

Unit tests using Jasmine
------------------------

How to run the unit-tests?

In this distributions of dust, we have unit tests in Jasmine for both the client and the nodejs version.
If you want to run the client version just open the html page called specRunner.html located on "test/client/specRunner.html".

In order to run the server distribution of dust, run this command in the terminal: "node test/server/specRunner.js"

pre-requisites for tests on node server version:
----------------------------------
* install nodejs 0.6 or greater
* install npm
* install Jasmine test framework (npm install -g jasmine-node)



Dust Helpers
------------

Expand Down
31 changes: 31 additions & 0 deletions test/README.md
@@ -0,0 +1,31 @@
To run the tests
----------------

With MakeFile:
* unit Test : "make test"
* jasmine test: "make jasmine"

note: the commands mentioned above has to be executed in the project root folder.

Dust original Unit tests
------------------------
This test are developed to be run with nodejs, so if you want to run them you should execute this command in the terminal: "node test/server.js"

Unit tests using Jasmine
------------------------

How to run the unit-tests?

In this distributions of dust, we have unit tests in Jasmine for both the client and the nodejs version.
If you want to run the client version just open the html page called specRunner.html located on "test/jasmine-test/client/specRunner.html".

In order to run the server distribution of dust, run this command in the terminal: "node test/jasmine-test/server/specRunner.js"


pre-requisites for tests on node server version:
----------------------------------
* install nodejs 0.6 or greater
* install npm
* install Jasmine test framework (npm install -g jasmine-node)


0 comments on commit da9a89a

Please sign in to comment.