py.test: error: unrecognized arguments: --cov=ner_brands --cov-report=term-missing --cov-config

后端 未结 6 2158
囚心锁ツ
囚心锁ツ 2021-02-06 20:20

when I am trying to run my test through command line

py.test  file_name.py

I got this error:

py.test: error: unrecognized argum         


        
6条回答
  •  情歌与酒
    2021-02-06 20:44

    sdonk's answer helped me. But since I use pipenv, I had to run

    pipenv install pytest_cov
    

提交回复
热议问题