[Numpy-discussion] How to run NumPy's tests with coverage?
ralf.gommers at googlemail.com
Mon May 7 12:31:44 EDT 2012
On Mon, May 7, 2012 at 5:25 AM, <josef.pktd at gmail.com> wrote:
> On Sun, May 6, 2012 at 4:39 PM, Ralf Gommers
> <ralf.gommers at googlemail.com> wrote:
> > On Sun, May 6, 2012 at 9:08 PM, Chris Ball <ceball at gmail.com> wrote:
> >> Hi,
> >> I'm trying to figure out how to run NumPy's tests with coverage enabled
> >> (i.e.
> >> numpy.test(coverage=True) ). I can run the tests successfully like this:
> > This seems to have been broken somewhere along the way. If you remove the
> > argument "--cover-inclusive" from line 242 in
> > that should fix all errors except TestNewBufferProtocol.test_roundtrip.
> > sure what's going on with that one.
> removing "--cover-inclusive" helped me also with statsmodels, with it
> it ran all example scripts and got stuck several times,
> (permanently stuck in some multiprocessing example?)
> Now coverage=True worked for the first time.
> Is it possible to make this optional or remove it from numpy?
This should be completely be removed I think, not worth making a new
keyword for. Can't imagine this being useful to a lot of people, and if it
is you can still use it from the command line with "$ nosetests
> from a beneficiary of the nice numpy testing support outside of numpy
> Thanks for the tip,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion