summaryrefslogtreecommitdiff
path: root/TODO
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2007-04-23 04:38:54 +0000
committerJason Pellerin <jpellerin@gmail.com>2007-04-23 04:38:54 +0000
commitd9f3bcd184c7f07ef1a54957042f25be20dded5f (patch)
tree505525cd6934cbafe7036df382b5d3f68211a447 /TODO
parentebc80cc85b005261880c4dca0314563c4530838d (diff)
downloadnose-d9f3bcd184c7f07ef1a54957042f25be20dded5f.tar.gz
Modifed doctests plugin to use local subclasses of DocTestCase and DocFileCase that add address() and fix name attribute rather than wrapping. Removed TestWrapper from nose.case. Made builtin plugin loading slightly less manual and more robust.
Diffstat (limited to 'TODO')
-rw-r--r--TODO30
1 files changed, 15 insertions, 15 deletions
diff --git a/TODO b/TODO
index 3764a68..b411330 100644
--- a/TODO
+++ b/TODO
@@ -11,12 +11,22 @@ DOCUMENTATION
FEATURES
-doctest: must return wrapped suite
+doctest:
+ -- can't use DocTestCase/DocTestSuite/DocFileSuite -- the cases
+ returned don't implement things correctly. Need to subclass DocTestCase
+ locally and return instances of that subclass. May have to do something
+ icky like call DocTestSuite and then pull the ._dt_test out of the cases?
+
+ - good thing: might make it possible to support file tests in 2.3
new plugin:
testid
-- needs tests with doctests
- -- needs to be able to handle cases w/out address() method
+ -- change the command line parsing to look for just digits -- # is a shell
+ meta character that causes parsing to stop othe options:
+ * digit-dot: 3.
+ * dash digit -3
+ * -id digit -id 3
rename Failure and split into subclasses for Import and other, and make
it optionally include the name of the file being considered so that
@@ -43,18 +53,6 @@ OK (skipped=2)
BUGS
-BIG PROBLEM
-
-given an input like:
-
-python nose/core.py functional_tests/support/idp/example.py:add_one --with-doctest
-
-the natural expectation is that the target function will be loaded as
-a DOCTEST not as a regular test. Doctest probably needs to implement
-loadTestsFromName? or makeTest? -- maybe plugins need FIRST crack at
-makeTest? One way or another, the doctest plugin has to be allowed to
-examine the proposed test object first and turn it into a test if it
-wants to.
-- when run vs spine suite, makeTest seemingly was called on an object
@@ -105,7 +103,9 @@ PROFILE
need to profile -- on 250 tests with discovery, 0.10-dev is ~ 1 second
slower than 0.9. Profile and optimize.
-
+one possiblity -- instead of instantiating a result proxy for every
+test, tag each test with a weakref to the nose.case.Test that wraps
+it.
older notes: