Skip to content

Commit

Permalink
Update the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
philjackson committed Oct 17, 2011
1 parent b468e98 commit 94718e8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Expand Up @@ -46,28 +46,35 @@ call 'private' methods what you want. The callback received by each
method must be called when it's finished and should also take the
number of tests you expected to run.

Any methods that begin with 'setup' will run before each test method
Any methods that begin with "setup" will run before each test method
and any that start with 'teardown' will run after each test
method. `setup` will always run before other setup functions and
`teardown` will always run before other teardown methods. So for
example, with a class that looks like this:
`teardown` will always run before other teardown methods. The others
will run in alphabetical order. So for example, with a class that
looks like this:

class Hello
"teardown webserver":
teardown:
setup:
testOne:
"setup database":
"setup controllers":
"setup application":
testTwo:

The execution order will be:

* setup
* setup application
* setup controllers
* setup database
* testOne
* teardown
* teardown webserver
* setup
* setup application
* setup controllers
* setup database
* testTwo
* teardown
Expand Down

0 comments on commit 94718e8

Please sign in to comment.