summaryrefslogtreecommitdiff
path: root/NOTES
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2006-12-19 03:35:52 +0000
committerJason Pellerin <jpellerin@gmail.com>2006-12-19 03:35:52 +0000
commit05bff2bd41a7d1930dbfc4eb87a19e1461f5b467 (patch)
tree23e570e05f07cfda8862862ba54bd53331031468 /NOTES
downloadnose-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--NOTES30
1 files changed, 30 insertions, 0 deletions
diff --git a/NOTES b/NOTES
new file mode 100644
index 0000000..77ca191
--- /dev/null
+++ b/NOTES
@@ -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