unittests/README.txt
author hamidouk
Tue, 15 Nov 2011 11:03:53 +0100
branchpopcorn-port
changeset 242 2b8380ef73a1
parent 58 f92e6c4baae9
permissions -rw-r--r--
commited by error LAB.js in the main branch.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
58
f92e6c4baae9 Renamed LAYOUT.txt and added sinon.js for mockups.
hamidouk
parents:
diff changeset
     1
Layout of the unittests directory
f92e6c4baae9 Renamed LAYOUT.txt and added sinon.js for mockups.
hamidouk
parents:
diff changeset
     2
==================================
f92e6c4baae9 Renamed LAYOUT.txt and added sinon.js for mockups.
hamidouk
parents:
diff changeset
     3
f92e6c4baae9 Renamed LAYOUT.txt and added sinon.js for mockups.
hamidouk
parents:
diff changeset
     4
We've got a directory for tests - unittests/tests. Add your tests there. There should be only one file per functionality area tested (i.e - all the
f92e6c4baae9 Renamed LAYOUT.txt and added sinon.js for mockups.
hamidouk
parents:
diff changeset
     5
tests about JSONSerializer should be in jsonserializer.js). Your tests should be wrapped in a function named "test_$filename$" where $filename$ is the
f92e6c4baae9 Renamed LAYOUT.txt and added sinon.js for mockups.
hamidouk
parents:
diff changeset
     6
name of your file. Don't forget to define a module for your tests and to add a reference to your file in index.html