[wingide-users] Re: Problems with unit testing

cool-RR cool-rr at cool-rr.com
Sun Mar 28 07:50:12 MDT 2010


Tried it now. Drilled to the bottom, didn't see the printed strings. Also, I
don't have a "+", I have a triangle that can point either to the right or
downwards.

On Sun, Mar 28, 2010 at 2:24 AM, Jonathan March <JDM at marchray.net> wrote:

> 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
>>
>
>


-- 
Sincerely,
Ram Rachum
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/wingide-users/attachments/20100328/672b5f7b/attachment.html


More information about the wingide-users mailing list