PyCharm, Django: zero code coverage

后端 未结 4 1054
长情又很酷
长情又很酷 2021-02-19 02:56

PyCharm has a \"Run with Coverage\" action for Django test targets. This runs the tests, but shows zero test coverage (0% files, not covered in the project pane, and all red in

4条回答
  •  走了就别回头了
    2021-02-19 03:49

    If you access your project via any symlink in the path, coverage display will fail.

    Try to open same project through real path, and you will get correct behavior.

    https://youtrack.jetbrains.com/issue/PY-17616

    PS: Refreshing old question, as bug still has not been fixed.

提交回复
热议问题