我们目前py.test使用coverage插件在tests目录中运行我们的测试.
py.test
tests
从主代码中提取doctests的最简单方法是什么? --doctest-modules不起作用(可能因为它只是运行doctests tests).请注意,我们希望在同一进程中包含doctests(而不是简单地运行单独的调用py.test),因为我们希望在代码覆盖率中考虑doctest.
--doctest-modules
python testing doctest pytest
doctest ×1
pytest ×1
python ×1
testing ×1