PyCharm running Unittests with coverage with remote interpreter (vagrant) not showing on "coverage view"
Using PyCharm 2019.3.1 (Professional edition),
running unittests with coverage do show coverage percentage on the project files tree (left pane), and also show the right colors for code lines covered.
but, it doesn't show anything in the "Coverage view" window (right pane), except for the `.idea` folder.
I would guess it has some troubles in the paths mapping, but anything else works fine.
Please sign in to leave a comment.
Could you share a screenshot of your coverage settings?
Settings/Preferences | Build, Execution, Deployment | Coverage
Also, check your idea.log (Help | Show Log in...) and see if it has similar entries https://youtrack.jetbrains.com/issue/PY-36295
(didn't find anything related in the issue you've linked)
the relevant logs I've got:
How does it go with Use bundled coverage.py enabled?
same results:
Sergey Karpov, do you have any lead?
@Victor Bouhnik
Sorry for the delay in response.
I tried to reproduce it but it works fine. Which Vagrant box do you use?
Is it Python 2 or 3?
Sergey Karpov
Actually, I have couple of interpreters defined: one with python 2.7 and the other with python 3.6.
when running with the 3.6 interpreter I get what I wrote in the OP.
however, when running with the 2.7 interpreter, I get the following:
Try starting PyCharm with default settings by temporarily removing the config folder https://www.jetbrains.com/help/pycharm/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html
Has it helped?
Which Box do you use for Python 3.6?
Actually, it worked with the default settings.
I'll try to figure out what went wrong with my previous configuration.
thanks.
I'm using MacOS Mojave BTW.
PyCharm 2022.2.3 still not solved