回答:
これで問題が解決するかどうかはわかりませんが、テストスイートが完了した後で合格--durations=Nすると、最も遅いNテストを印刷できます。
--durations=0すべてを印刷するために使用します。
.coveragerc内容でファイルを追加するような同様に、[run] branch = True分岐カバレッジ情報を追加しますか?
(0.00 durations hidden. Use -vv to show these durations.)ため、意味がありません。
あなたは番号を渡すことができます --durations
pytest --durations=0 — Show all times for tests and setup and teardown
pytest --durations=1 — Just show me the slowest
pytest --durations=50 — Slowest 50, with times, … etc
または:https : //docs.pytest.org/en/latest/usage.html#profiling-test-execution-duration
--durations=0ALLテストの実行時間を報告します。