# Python Testing with pytest, Second Edition: unrecognized arguments error (page 122)

**URL:** <https://forum.devtalk.com/t/python-testing-with-pytest-second-edition-unrecognized-arguments-error-page-122/29717>\
**Category:** PragProg Customers\
**Tags:** book-python-testing-with-pytest-second-edition, errata\
**Created:** [18 November 2021 17:21 UTC](https://forum.devtalk.com/t/python-testing-with-pytest-second-edition-unrecognized-arguments-error-page-122/29717 "2021-11-18T17:21:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunogirin](https://forum.devtalk.com/user_avatar/forum.devtalk.com/brunogirin/32/3590_2.png) [@brunogirin](https://forum.devtalk.com/u/brunogirin)\
**Post date:** [18 November 2021 17:21 UTC](https://forum.devtalk.com/t/python-testing-with-pytest-second-edition-unrecognized-arguments-error-page-122/29717/1 "2021-11-18T17:21:55Z")

</div>

When I run the coverage example to report on missing lines, I get:

```auto
pytest --cov=cards --report=term-missing ch7
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --report=term-missing

```

It works fine when I run `​​coverage​​ ​​report​​ ​​--show-missing`.

Digging a bit in the options shows that this line should be: `pytest --cov=cards --cov-report=term-missing ch7` (the prefix `cov-` is missing in the `cov-report` option).

---

<div class="post-metadata">

**Author:** ![brianokken](https://forum.devtalk.com/user_avatar/forum.devtalk.com/brianokken/32/846_2.png) [@brianokken](https://forum.devtalk.com/u/brianokken)\
**Post date:** [3 December 2021 05:36 UTC](https://forum.devtalk.com/t/python-testing-with-pytest-second-edition-unrecognized-arguments-error-page-122/29717/2 "2021-12-03T05:36:38Z")

</div>

Thanks.
