Python coverage does not see config file

Viewed 935

I am running python coverage for Django unit tests in parallel mode:

coverage run --source='.' --concurrency=multiprocessing manage.py test --parallel

It is complaining: Options affecting multiprocessing must be specified in a configuration file.

But I have .coveragerc file in the same directory from which I start coverage with the following content:

[run]
branch = True
concurrency = multiprocessing

Tried to specify --rcfile option for coverage run, that did not help. What am I missing?

Thank you!

1 Answers

You must not provide the --concurrency parameter as a command line argument, but in the config file only.

Related