2

We do coverage reports with the famous and possible the only solution in python world i.e. coverage.py

Now, What we acheive with coverage.py is this : enter image description here

Where as what we could achieve with ruby-rails is : enter image description here

So, my question is how do you get more detailed coverage reports with coverage.py ?

[ Or any other tool in the python django world ]

Note:

  • coverage run manage.py test --settings=project.test_settings
  • Generate the report by coverage html
  • Should / Can I pass in extra parameters to coverage while generating report ?
4

1 に答える 1

2

1) 検索ボックスは便利そうですが、これまで誰も提案したことがありません。

2) 条件付きカバレッジ: coverage.py にはブランチ カバレッジを有効にする --branch スイッチがあります。これはあなたが探しているものですか?

3) Hits/line: 各行が実行された回数は? こんなにまとまっているのを見たことがない。自分の仕事でその統計をどのように使用するかわかりません。人々が平均ヒット/ラインを知りたい理由を理解するのを手伝ってもらえますか?

于 2012-10-15T16:07:45.103 に答える