Permalink
Browse files

Doc update

  • Loading branch information...
1 parent c65a58d commit f3c1e4043487a7d1f35f1a5c7f037e66b0d5bfef @5long committed Nov 6, 2010
Showing with 13 additions and 0 deletions.
  1. +13 −0 doc/api.mkd
View
@@ -68,6 +68,14 @@ Example:
// And even add more tests
.test( ... )
+### reut.run()
+
+Exposed for writing self-run module.
+
+ var reut = require("reut")
+ // nextTick it so this line stays at top.
+ if (module == require.main) process.nextTick(reut.run)
+
### suiteMonad.setup(action)
Define one setup function for the test suite.
@@ -94,6 +102,11 @@ Needless to say.
Note that all setup and teardown functions are run parallelly.
+### suiteMonad.startup(action), suiteMonad.shutdown(action)
+
+Stolen from Ruby Test::Unit 2.0. They are run per suite instead of per
+test. And reut supports multiple asynchronous startup/shutdown.
+
### suiteMonad.test(desc, action)
Add a test to the suite. Tests always run after all the setups finish.

0 comments on commit f3c1e40

Please sign in to comment.