Permalink
Browse files

readme - how to run the tests

  • Loading branch information...
sconover committed Dec 8, 2010
1 parent ea0fd40 commit 1faaf204ab5c24161a3526594f2b7ecc90b8e4e6
Showing with 40 additions and 2 deletions.
  1. +40 −2 README.textile
View
@@ -150,9 +150,47 @@ pre.. <div class="category">
</div>
</div>
-h2. Error handling
+h3. Error handling
p. If the requested template does not exist, the renderer will return null:
bc.. => Jaml.render('missing');
-=> null
+=> null
+
+h2. Testing
+
+p.The Jaml test suite runs using either node or via a webpage-based runner (specs/index.html).
+
+h4. Run the tests in a browser
+
+p.To use the web-based runner, jasmine must be checked out in a directory alongside jaml:
+
+pre..
+git clone https://github.com/pivotal/jasmine
+ls
+==> jaml jasmine
+
+p. ...then open specs/index.html in your browser.
+
+h4. Run the tests using node.js
+
+p. Install node.js
+
+p. Check out sconover's jasmine-node alongside jaml:
+
+pre..
+git clone https://github.com/sconover/jasmine-node
+ls
+==> jaml jasmine-node
+
+p. then run the suite:
+
+pre..
+$ node specs/suite.js
+Started
+..........................
+
+Finished in 0.018 seconds
+12 tests, 39 assertions, 0 failures
+
+

0 comments on commit 1faaf20

Please sign in to comment.