[Numpy-discussion] Test framework changes
Fernando Perez
fperez.net at gmail.com
Fri Jun 20 19:22:51 EDT 2008
On Fri, Jun 20, 2008 at 3:04 PM, Alan McIntyre <alan.mcintyre at gmail.com> wrote:
> On Fri, Jun 20, 2008 at 5:35 PM, Robert Kern <robert.kern at gmail.com> wrote:
>> So NoseTester.run() basically just calls nose.run(). That basically
>> just instantiates nose.core.TestProgram and returns the .success
>> attribute of it. Unfortunately, the TextTestResults object (a nose
>> subclass of unittest._TextTestResults) gets created and discarded
>> inside the nose.core.TestProgram.runTests() method. However, if you
>> were to subclass it and override that method to store the
>> TextTestResults to an attribute, you could return it from
>> NoseTester.run().
>
> Yep. I was hoping there was some built-in way to get to the details of
> the results via the nose API, but that doesn't appear to be something
> the nose developers considered. I'll probably go ahead and do as you
> suggested instead of making a temporary class to hold the result.
It may be worth bringing it up wtih the nose guys here:
http://lists.idyll.org/listinfo/testing-in-python
The nose author seems very responsive, and Titus Brown is on the list
and cares a lot about numpy/scipy, and he may offer suggestions as
well.
Cheers,
f
More information about the NumPy-Discussion
mailing list