I have this version of Python:
3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]
running on Windows 10 in PyCharm CE 2020.1.1. Using a very simple unittest:
# test_simple.py
from unittest import TestCase
class Simple(TestCase):
def test_one(self):
self.assertTrue(True)
I can run python -m coverage run -m unittest, which completes and generates a .coverage SQLite file; and I can run the test from the IDE which produces a Test Results tree; but Run / Run with Coverage is grayed out with no explanation.
I have followed the (fairly scattered) PyCharm documentation to do Settings / Build, Execution, Deployment, Activate Coverage View enabled, Show options before applying coverage to the editor and this has not helped.
Why is coverage grayed out and how can I fix it?