visionmedia / expresso

use mocha
http://visionmedia.github.com/expresso
759 stars 89 forks source link

In serial, Shouldn't setup and teardown always be executed? #137

Closed ppcano closed 13 years ago

ppcano commented 13 years ago

I am wondering whether setup ( for preparing resources ) and teardown ( for release resources ) should be always performanced, instead of a failing test comes up.

The current implementation, stop the test suite and won't execute the teardown method on the failing test.

From my point of view, i use to run all the tests on a suite, and ending the execution look at how many tests fails. With the current implementation i cannot get the test working on this way.

I guess, this behavior could also be copied on Parallel mode.

lg