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

后端 未结 6 2171
囚心锁ツ
囚心锁ツ 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:46

    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.

提交回复
热议问题