Hey, since upgrading to PyCharm 2.5 I'm having a very hard to debug problem with using PyCharm's test runner on our Buildout managed Django application.
The application has the following structure:
... lectures [Django project]
... ... manage.py
... ... settings.py
... ... [Other modules]
The project settings have "buildout support" ticked and "bin/django" script set as path script, and "django support" has "project folder/lectures" set as project root with settings.py and manage.py within that project set as settings/manage scripts. Running the project works perfectly (with and without debug support), however there is a problem running the tests.
1.) Running tests in console with "bin/django test" works without a hitch
2.) Running tests within PyCharm with default Run/Debug configuration fails with several ImportErrors (missing django.management being within them).
My debug efforts until now have shown that when using the internal PyCharm test runner, the buildout script paths aren't set resulting in ImportErrors for all missing EGG libraries within "Project folder/parts" folder. This was not the case in PyCharm 2.4 (as I remember), however I can reproduce this problem in all 2.5.x versions.
The platform I'm running PyCharm on is Linux x64 with Oracle Java 1.7.0_05.
Is this a PyCharm bug, or am I missing something? What are the steps I can take to debug and/or fix this problem?