[IPython-dev] Running tests

Fernando Perez fperez.net@gmail....
Thu Jan 14 17:23:38 CST 2010


Hey Jorgen,

On Thu, Jan 14, 2010 at 10:05 AM, Jörgen Stenarson
<jorgen.stenarson@bostream.nu> wrote:
> Fernando Perez skrev 2010-01-13 20:35:
>>
>> On Mon, Jan 11, 2010 at 1:13 PM, Jörgen Stenarson
>> <jorgen.stenarson@bostream.nu>  wrote:
>>>>
>>> I have tried both approaches with the same result.
>>
>> BTW, try the new code I posted yesterday (if you're running from
>> branch, just bzr pull on it).  It should be a lot better, bug me if
>> not.
>>
>> f
>>
> There is something strange going on here.
>
> I just installed the latest trunk with setup.py install
>
> If I just use iptest then I get a bunch of tests run with a very verbose
> output i.e. one line for every test.
>
> With iptest -q I get lots of errors and failures it seems not all testgroups
> are used.
>
> Using the verbosity setting also generates lots of errors.

Yes, right now iptest handles options badly, I need to fix that:

https://bugs.launchpad.net/ipython/+bug/507079

> The output of iptest IPython.core looks strange:
>
> ............................................................................S...
>>>>

I'm totally stumped by that verbosity, I have *no clue* where it's
coming from, though I've looked.  Tracked now:

https://bugs.launchpad.net/ipython/+bug/507705

Those ERROR messages aren't affecting the final result, but I still
want them gone:

https://bugs.launchpad.net/ipython/+bug/507706


> Is it possible to run the tests without installing?

Yes, I was running them yesterday without installing.  In Windows,
what I did was to add to my PYTHONPATH (Control Panel -> Sysstem->
Advanced -> Environment Variables) the source download directory, and
to my PATH C:\Python26\Scripts.  With those two things, I went to the
IPython/scripts directory, and in a console would type

python iptest

or

python iptest -v IPython.core

etc.

Note that right now, until I fix the bug abov, you should ONLY run

python iptest  # without ANY OPTIONS!

or

python iptest -any-option-you-want   IPython.something.something
python iptest -any-option-you-want   IPython.something.something:somefunc

Both of these were working fine for me.

I'm also curious, in addition to test-suite problems, is it working OK for you?

Cheers,

f


https://bugs.launchpad.net/ipython/+bug/507078


More information about the IPython-dev mailing list