How to make pytest run doctests as well as normal tests directory?

前端 未结 4 1269
南方客
南方客 2021-01-01 14:54

We currently have pytest with the coverage plugin running over our tests in a tests directory.

What\'s the simplest way to also run doctest

4条回答
  •  既然无缘
    2021-01-01 15:37

    Could you try with the repo version of pytest and paste a session log? I'd think --doctest-modules should pick up any .py files.

提交回复
热议问题