Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

py.test: error: unrecognized arguments: --cov-report --cov=

I am running this test case command below

py.test --cov-report term-missing --cov=pipelines/core/comp/plugins/abc/ --noconftest pipelines/core/comp/test/plugins/abc/test_abc_crawler_task.py -vv

But getting the following error :

usage: py.test [options] [file_or_dir] [file_or_dir] [...]
py.test: error: unrecognized arguments: --cov-report --cov=pipelines/core/comp/plugins/abc/ pipelines/core/comp/test/plugins/abc/test_abc_v4_crawler_task.py
  inifile: /home/udocker/piper/pytest.ini
  rootdir: /home/udocker/piper
like image 330
Aman Raheja Avatar asked Oct 27 '25 15:10

Aman Raheja


1 Answers

You need to install pytest-cov with

pip3 install pytest-cov
like image 66
hackinghorn Avatar answered Oct 29 '25 05:10

hackinghorn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!