[issue7897] Support parametrized tests in unittest

Michael Foord report at bugs.python.org
Wed Jul 20 16:19:56 CEST 2011


Michael Foord <michael at voidspace.org.uk> added the comment:

Dammit, I've reversed my thinking in some of those messages. Load time parameterisation *does* give you separate test reporting. It is run time parameterisation that doesn't.

Depending on how you do it (i.e. if the decorator generates the tests and attaches them as TestCase methods) you can do it at import time. And then normal test selection works if you know the test name.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7897>
_______________________________________


More information about the Python-bugs-list mailing list