[wingide-users] Re: Problems with unit testing

Jonathan March JDM at MarchRay.net
Sat Mar 27 18:24:37 MDT 2010


In the testing panel, if you keep drilling down (click "+") on the test
which produced the output, you'll see the output eventually.

On Sat, Mar 27, 2010 at 3:57 PM, cool-RR <cool-rr at cool-rr.com> wrote:

> Another question: When I use the print function/statement in a test, to
> where does it get printed?
>
>
> On Sat, Mar 27, 2010 at 9:34 PM, cool-RR <cool-rr at cool-rr.com> wrote:
>
>> Hello,
>>
>> I'm just getting started with unit testing. I wrote some tests, and I'm
>> using the "Testing" tool in Wing. I'm having a few weird problems.
>>
>> 1. I get a weird error sometimes:
>>
>> OSError: No such file C:\Documents and Settings\User\My Documents\Python
>> Projects\GarlicSim\garlicsim\garlicsim_tests\tests.py:simpack_test(<module
>> 'garlicsim.bundled.simulation_packages.prisoner' from 'C:\Documents and
>> Settings\User\My Documents\Python
>> Projects\GarlicSim\garlicsim\garlicsim\bundled\simulation_packages\prisoner\__init__.pyc'>,)
>> File "C:\Python26\Lib\unittest.py", line 279, in run
>>   testMethod()
>> File "C:\Python26\Lib\site-packages\nose\failure.py", line 39, in runTest
>>   raise self.exc_class(self.exc_val)
>>
>> 2. Sometimes the tests fail, and then I restart Wing and I run the tests
>> again and they succeed.
>>
>> 3. Question: How do I get the Testing tool to rediscover my tests, without
>> restarting Wing?
>>
>> --
>> Sincerely,
>> Ram Rachum
>>
>
>
>
> --
> Sincerely,
> Ram Rachum
>
> _________________________________________________
> Wing IDE users list
> http://wingware.com/lists/wingide
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/wingide-users/attachments/20100327/13c0d46c/attachment.html


More information about the wingide-users mailing list