[TIP] Thanks! (and a question)

Kumar McMillan kumar.mcmillan at gmail.com
Fri Jun 20 21:54:25 PDT 2008


I believe it gets discarded because that's what unittest did and no
one asked for it otherwise.  Jason would probably accept a patch if
you need it to retain backwards compatibility.  Just attach it to a
ticket here: http://code.google.com/p/python-nose/issues/list

On Fri, Jun 20, 2008 at 9:50 PM, Alan McIntyre <alan.mcintyre at gmail.com> wrote:
> Hi all,
>
> First, thanks for nose; it's a very useful package.  NumPy is in the
> process of switching over to use nose as the testing framework, and
> it's been very easy to do. Being able to add coverage just by passing
> in some extra arguments was a nice bonus. :)
>
> My question is this: would it be possible to make the test result
> object accessible after tests are run?  We'd like to return it to
> users (the old test framework did this, and we need backwards
> compatibility), but that object seems to get discarded in
> nose.core.TestProgram.runTests.  It wasn't hard to subclass
> TestProgram and provide a modified runTests method to save the object,
> but it would be nice if it was retained and made publicly accessible
> as an attribute of TestProgram by default.  I can provide a patch if
> need be.
>
> Thanks!
> Alan
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python
>



More information about the testing-in-python mailing list