I have multiple projects that I would like to run from pydev package explorer
by selecting the projects to run and typing alt-R-S to invoke pydev unittest
- I can run individual projects.
- I can run some projects collectively as I describe above.
- I cannot run multiple projects structured as in the example code I am sending with this
report.
The example code contains 4 projects, each of which can be run individually as I describe
above (PyDev Package Explore - alt-R-S).
When I select 1 and 2 and try to run them: I get the error:
.........
Traceback (most recent call last):
File "C:\opt\eclipse-indigo\plugins\org.python.pydev.debug_2.2.0.2011062419\pysrc\pydev_runfiles.py", line 307, in __get_module_from_str
mod = __import__(modname)
ImportError: No module named vt.src.vtuProject
ERROR: Module: vt.src.vtuProject could not be imported (file: C:<mypath>/workspace-indigo/proj01/vt/src/vtuProject.py).
.........
Two of the projects in the attached code are structured as follows:
projX <---- pydev project
vt <---- pydev (python) source folder
src <---- python package
xxx.py <---- python test module/code
xxx.py is the file that pydev unittest can't find.
Projects 2 and 3 have differently structured files and folders but have the same symptoms. This
surprised me because projects 2 and 3 have a structure like my production code projects. I can run
multiple projects of my production code together from Pydev explorer without problems.
I am probably missing a detail.
Eclipse indigo JEE - pydev 2.2.2.2011082312
Examples of problem projects