问题描述
我正在以并行模式运行Django单元测试的python coverage:
coverage run --source='.' --concurrency=multiprocessing manage.py test --parallel
令人抱怨的是: Options affecting multiprocessing must be specified in a configuration file.
但是我在同一目录中具有.coveragerc
文件,从该目录开始覆盖以下内容:
[run]
branch = True
concurrency = multiprocessing
试图为覆盖运行指定--rcfile
选项,但没有帮助。
我想念什么?
谢谢!
1楼
您不得将--concurrency
参数作为命令行参数提供,而只能在配置文件中提供。