nose-devs/nose — Issue #79: allow plugins to stop test in run time
Author: jpellerin
Created: 2011-12-14 15:58:29+00:00
State: open

Hi i would like to have the possibility to stop context suite execution (or
any test - the "suite skip" is easy then) from plugin without aborting all
scheduled tests.

What I'm trying to do:

I have test class containing some tests (trivial, but with non-trivial time
consumption).
There can be defined ordering on them (if test N fails, all tests > N fails
too).
So in this case it would be nice to skip the tests > N (we know that they
will fail),
but continue in execution of other test suites.

So if there will be function like wantToExecuteTest(self, test) or
wantToSkipTest(self, test) called just before beforeTest (or a special
return value from beforeTest which will do this) I would be glad.

I'm attaching mail discussion from TIP about this.

Google Code Info:
Issue #: 147
Author: zouhar.j...@gmail.com
Created On: 2008-01-07T08:49:40.000Z
Closed On: