[TIP] getting access to the discovered test list

jason pellerin jpellerin at gmail.com
Wed Feb 28 18:46:19 PST 2007


Responding to myself...

> Hm -- interesting. I'm not sure of the best way to do exactly that
> with nose. You could write a plugin that implements wantClass to
> always return False (to prevent normal loading), and
> loadTestsFromTestCase to wrap each test case in a fork/exec and parse
   ^^^^^^^^^^^^^^^^^^^^^^^

That's actually spelled loadTestsFromModule, sorry. You could
implement that in a plugin, and do exactly what the default unittest
TestLoader does, except wrap each test case in a proxy that forks and
execs just that case and then parses, etc.

JP



More information about the testing-in-python mailing list