469,301 Members | 2,153 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,301 developers. It's quick & easy.

pyunit and Eclipse

I was working with a friend on a project Monday night, and tried to run a
pyunit test from Eclipse, and nothing seemed to happen. We finally figured
out that the test is doing exactly what it's supposed to do, but the pyunit
output isn't making it to the Eclipse console window. We get the same result
if I run the module as a pyunit test using Eclipse, or if we simply have the
program call unittest.main, and run that.

As a workaround, we just ran the tests from a command prompt which worked well
enough, but it would be nice to fix the problem.
Aug 4 '05 #1
1 7486
Steve Jorgensen wrote:
I was working with a friend on a project Monday night, and tried to run a
pyunit test from Eclipse, and nothing seemed to happen. We finally figured
out that the test is doing exactly what it's supposed to do, but the pyunit
output isn't making it to the Eclipse console window. We get the same result
if I run the module as a pyunit test using Eclipse, or if we simply have the
program call unittest.main, and run that.

As a workaround, we just ran the tests from a command prompt which worked well
enough, but it would be nice to fix the problem.

Which pydev version? How did you do the run?

Guessing those...

Just a single file, yes, it would be just unittest.main()...

Anyway, there is an issue in Eclipse (happens in java too) that is the
following: if you do a run and it is too fast, sometimes the output does
not show (usually if you re-run it --Ctrl+F11 -- , it works, but not
always).

If you are running the unit-test for a folder, you don't need the
unittest.main(), as it should auto-import the test-cases in the files
below the folder (recursively) and run them.

Cheers,

Fabio

--
Fabio Zadrozny
------------------------------------------------------
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com
Aug 4 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by could ildg | last post: by
2 posts views Thread by chris | last post: by
1 post views Thread by travislspencer | last post: by
5 posts views Thread by Sakcee | last post: by
2 posts views Thread by volcano | last post: by
reply views Thread by winston.yang | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.