nose-devs/nose — Issue #271: Discovery of dynaimcally generated tests
Author: jpellerin
Created: 2011-12-14 16:06:08+00:00
State: closed

What steps will reproduce the problem?
--- test_dynamic.py --
class DynamicTest:
pass

def _setup():
for i in range(10):
setattr(DynamicTest, "test_%d" % i, lambda x: 1)
_setup()

What is the expected output? What do you see instead?
Running "nosetests dynamic_test.py" I expect to see 10 tests pass.
However I see:
----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK

What version of the product are you using? On what operating system?
0.10.2

Please provide any additional information below.
I use this method for generating discovery based regression tests.
I have a .in and .gold files in a directory, and generate one test per .in.

Currently I just run the tests in a loop, however this is reported as one
test tough there are many tests.

Google Code Info:
Issue #: 188
Author: miki.teb...@gmail.com
Created On: 2008-05-22T23:21:17.000Z
Closed On: 2008-05-23T00:45:40.000Z