-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README file updated and README file for test created.
- Loading branch information
Jairo de Morais
committed
Mar 20, 2012
1 parent
1523ad6
commit da9a89a
Showing
2 changed files
with
31 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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) | |||
|
|||
|