Asked By – Hello lad
when I am trying to run my test through command line
I got this error:
py.test: error: unrecognized arguments: --cov=ner_brands --cov-report=term-missing --cov-config
How can I fix this?
Now we will see solution for issue: py.test: error: unrecognized arguments: –cov=ner_brands –cov-report=term-missing –cov-config
pytest-cov package is required if you want to pass –cov arguments to pytest, by default it should not be passed though. Are you using a modified version of py.test?
pip install pytest-cov
would fix your issue.
This question is answered By – sdonk
This answer is collected from stackoverflow and reviewed by FixPython community admins, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0