[py-dev] unitest.main() equivalent

holger krekel hpk at trillke.net
Fri Apr 8 19:48:07 MEST 2005


Hi Huy,  

> holger krekel wrote:
> >On Fri, Apr 08, 2005 at 09:00 +1000, Huy wrote:
> >>I'm basically trying to run my test directly in eclipse using pydev.
> >
> >'pydev' means py.test, i guess?  Is it so that one runs 
> 
> pydev is the eclipse plugin for python development. It would be cool if 
> py.test was some how integrated with this. pydev parses exception 
> messages and auto links them to the source.

I see. 

> >tests with eclipse by running the file directly?  
> >Isn't there a way to customize eclipse by specifying that 
> >"python path/to/py.test FILE_OR_DIRECTORY" 
> >should be run for testing?
> 
> Tried this but I want to run it through the pydev facilities, which work 
> by running the test file itself.  I can't get it to run pytest.bat (I'm 
> on windows) conveniently with my test files/directory and still get the 
> nice source linking.

Actually, I don't believe that py.test fully runs on Jython 
at the moment.  Did you have _any_ success running it?  
(irrespective if source linking works or not).  I would expect 
that at least assertion-expressions don't show nicely ... 

cheers, 

    holger


More information about the py-dev mailing list