Python覆盖率看不到配置文件

Dar*_*ria 5 python django multiprocessing coverage.py

我正在并行模式下运行 Django 单元测试的 python 覆盖率:

coverage run --source='.' --concurrency=multiprocessing manage.py test --parallel
Run Code Online (Sandbox Code Playgroud)

它在抱怨:Options affecting multiprocessing must be specified in a configuration file.

但我.coveragerc在同一目录中有文件,我从该目录开始覆盖以下内容:

[run]
branch = True
concurrency = multiprocessing
Run Code Online (Sandbox Code Playgroud)

尝试指定--rcfile覆盖运行选项,但这没有帮助。我缺少什么?

谢谢你!

Dar*_*ria 4

您不得将--concurrency参数作为命令行参数提供,而只能在配置文件中提供。