This issue has been opened with JetBrains here.
Has anyone run into this and solved it? Coverage integration would be very useful! Update I've set up a Run Configuration using the Django tests template and I'm not doing anything special or out of the ordinary, as far as I'm aware. My tests and coverage reporting work correctly via the command line, i.e.: $ python manage.py test While with it I see: Traceback (most recent call last):įile "/Applications/P圜harm.app/Contents/helpers/coveragepy/coverage/cmdline.py", line 721, in mainįile "/Applications/P圜harm.app/Contents/helpers/coveragepy/coverage/cmdline.py", line 438, in command_lineįile "/Applications/P圜harm.app/Contents/helpers/coveragepy/coverage/cmdline.py", line 580, in do_executeįile "/Applications/P圜harm.app/Contents/helpers/coveragepy/coverage/control.py", line 410, in stopįile "/Applications/P圜harm.app/Contents/helpers/coveragepy/coverage/collector.py", line 294, in stop "Expected current collector to be %r, but it's %r" % (self, self._collectors)ĪssertionError: Expected current collector to be, but it's Status = CoverageScript().command_line(argv)įile "/Users/dane/.virtualenvs/dhp/lib/python3.5/site-packages/coverage/cmdline.py", line 481, in command_lineįile "/Users/dane/.virtualenvs/dhp/lib/python3.5/site-packages/coverage/cmdline.py", line 625, in do_runįile "/Users/dane/.virtualenvs/dhp/lib/python3.5/site-packages/coverage/control.py", line 692, in stopįile "/Users/dane/.virtualenvs/dhp/lib/python3.5/site-packages/coverage/collector.py", line 277, in stop and entire IDE for Python programmers that guide the Django framework.
Without the bundled coverage.py I see: Traceback (most recent call last):įile "/Applications/P圜harm.app/Contents/helpers/coverage_runner/run_coverage.py", line 44, in įile "/Users/dane/.virtualenvs/dhp/lib/python3.5/site-packages/coverage/cmdline.py", line 741, in main pycharm license github The toolkit provides an integrated experience pycharm. I've tried with the bundled coverage.py and without. For example, if you want to create a drop down of countries in Django template, you can use the below code. And when I launch the app from P圜harm, it very clearly says 'Django version 1.5.1, using settings ''' in the console. For loop is used to iterate over any iterable object, accessing one item at a time and making it available inside the for loop body. Here is a screenshot: By the way, the recent update to P圜harm did not fix the problem. And yes, Django is installed in that virtual environment.
When trying to run tests with coverage under Django + django-nose in P圜harm, I can't seem to get the coverage report to work. In the P圜harm Python interpreter settings for this project I added in the Additional options box. Suffice it to say, I have of course pointed Pycharm to the correct interpreter, that being the virtual environment created using pipenv.