My Python project in PyCharm is not showing the run with coverage option. I am using the community edition.
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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.