Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm run with coverage is not showing

My Python project in PyCharm is not showing the run with coverage option. I am using the community edition.

enter image description here

I am using a workaround with some commands like

coverage run --source=./src/processor -m unittest discover -s src/ && coverage report

This gives me the code coverage report but it does not show which line is not covered by the test case.

I want to know if this is a known issue or it is a paid feature. Is there a way to view the uncovered lines?

like image 922
Abhishek Patil Avatar asked Oct 24 '25 21:10

Abhishek Patil


1 Answers

Running coverage integrated in the PyCharm IDE is a feature exclusive to the Professional edition. It's stated at the top of the documentation Running with coverage and can also be verified in the edition comparison matrix.

However, you can still generate coverage HTML reports from the terminal and see the results. Although less convenient since you don't get the integrated run button and the red/green lines in the editor window sidebar, it's still possible to have the coverage functionalities.

like image 52
bad_coder Avatar answered Oct 26 '25 09:10

bad_coder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!