["python","pytest"]
py.test: error: unrecognized arguments: --cov=ner_brands --cov-report=term-missing --cov-config

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?
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.