問題タブ [pytest-cov]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
86 問題
0
投票する
2
に答える
92
参照
python - pytest-cov プラグインは、テストでカバーされていないインポートと関数定義を報告します
私は pytest カバレッジを使用しており、次のコマンド ラインにテスト スクリプトがあり、カバレッジ レポートを生成します。
ただし、テストを実行した後、テストによって明らかになったファイルの上にインポートが表示されます。それらの覆われていない行を取り除く方法を知っている人はいますか?