py.test: error: unrecognized arguments: --cov=ner_brands --cov-report=term-missing --cov-config
Full error message
when I am trying to run my test through command line py.test file_name.py I got this error: py.test: error: unrecognized arguments: --cov=ner_brands --cov-report=term-missing --cov-config How can I fix this?
Solutionsource: stackoverflow \u2197
pytest-cov package is required if you want to pass --cov arguments to pytest. By default it is not passed though. Are you using a modified version of py.test? pip install pytest-cov would fix your issue.
API access
Get this solution programmatically \u2014 free, no authentication.
curl https://depscope.dev/api/error/0d05c35ff0f105fdc1246068b60fdb7745dbfa2c56c1de06e981b4e7ab640837hash \u00b7 0d05c35ff0f105fdc1246068b60fdb7745dbfa2c56c1de06e981b4e7ab640837