There are still some docs to write, review and update, and any changes
coming out of Kumar's review of the new collect only/--failed
features, but we're almost there.
JP
Nice. But in seeing your commits fly by I noticed that the @attr test
is not 2.3 compatible. ;)
Otherwise looks good. Thanks!
JP
I think the performance testing needs a bit more thought. Especially regards:
* interactions with other plugins (i.e. multiprocessing or whatever
it's called).
* whether the approach is even the right way to do it (reyielding tests)
* it doesn't address the bug reporters use case at the moment.
How impatient are you? I don't suppose that was very convincing.
What's the status with this? Where should code be going, into svn or mercurial?
It's a bit confusing for those of us outside the sprint.
> There are still some docs to write, review and update, and any changes
> coming out of Kumar's review of the new collect only/--failed
> features, but we're almost there.
I just remembered my personal gripe about the docs: how to set up the
activation of a plugin.
Some examples have a class level name attribute that seems to get
picked up. Some let the base class do it. Others activate themselves
based on run time options. Since this is the first obstacle a
plugin author comes to, I think the activation process should have
something specific written about it. Especially waht you should be
doing.
thanks,
James
Yes, that looks good.
JP
Nope, the multiprocess failing is an error. In general if a test can't
run under version X it should skip. For doctest files, you can use the
new doctest file fixture stuff for that. I'll check out the
multiprocess one, I didn't know it was failing under 2.3.
JP
JP
If I run python2.3 selftest.py I see
======================================================================
FAIL: Doctest: test_withid_failures.rst
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/kumar/src/nose-pycon/nose/ext/dtcompat.py", line 1977, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for test_withid_failures.rst
File "/Users/kumar/src/nose-pycon/functional_tests/test_withid_failures.rst",
line 0
----------------------------------------------------------------------
File "/Users/kumar/src/nose-pycon/functional_tests/test_withid_failures.rst",
line 35, in test_withid_failures.rst
Failed example:
run(argv=argv, plugins=[TestId()])
Expected:
#1 Failure: ImportError (No module named apackagethatdoesntexist) ... ERROR
<BLANKLINE>
======================================================================
ERROR: Failure: ImportError (No module named apackagethatdoesntexist)
----------------------------------------------------------------------
Traceback (most recent call last):
...
ImportError: No module named apackagethatdoesntexist
<BLANKLINE>
----------------------------------------------------------------------
Ran 1 test in ...s
<BLANKLINE>
FAILED (errors=1)
Got:
----------------------------------------------------------------------
Ran 0 tests in ...s
<BLANKLINE>
OK
Ah, that is not the multprocess doctest at all. :)
That and the docstring of attrib are fixed on trunk.
JP
I was thinking of doing that too, but didn't want to muck about too
much with your examples. I agree they'd read a lot better without the
2.3 cruft, so if they're not testing anything usefully, I'd vote to
switch them.
JP