[wingide-users] Re: Problems with unit testing

cool-RR cool-rr at cool-rr.com
Sat Mar 27 14:57:24 MDT 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/wingide-users/attachments/20100327/a5211b95/attachment.html


More information about the wingide-users mailing list