diff options
author | Jason Pellerin <jpellerin@gmail.com> | 2006-12-19 03:35:52 +0000 |
---|---|---|
committer | Jason Pellerin <jpellerin@gmail.com> | 2006-12-19 03:35:52 +0000 |
commit | 05bff2bd41a7d1930dbfc4eb87a19e1461f5b467 (patch) | |
tree | 23e570e05f07cfda8862862ba54bd53331031468 /NOTES | |
download | nose-05bff2bd41a7d1930dbfc4eb87a19e1461f5b467.tar.gz |
[0.10-dev] Imported last revision from python-hosting to start 0.10-dev branch
Diffstat (limited to 'NOTES')
-rw-r--r-- | NOTES | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -0,0 +1,30 @@ +notes on loading from modules + +this pretty much all has to take place inside of the _tests iterator. + + +if the module is wanted + run setup + load tests (including submodules) and yield each test + run teardown +else if the module is not wanted: + * do not import the module * + if the module is a package: + recurse into the package looking for test modules + + +make suite.TestSuite +put run, call, setup, teardown, shortdescription there + +make LazySuite subclass it + +get rid of TestModule + +do module import in loadTestsFromModuleName; if an error, pass the error +to the module suite, whose run() should re-raise the error so that import +errors are seen only when we actually try to run the tests + +make ModuleSuite class with setUp, tearDown doing try_run, it gets +additional module and error keyword args + +rename TestDir to DirectorySuite |