LoginSignup
7
7

More than 5 years have passed since last update.

Pythonでテストを書いてプロファイル取ったりカバレッジ調べたり

Last updated at Posted at 2012-03-16

noseでテストを書いてカバレッジを調べたいなら

$ nosetests --with-coverage

だけれど、そんなオプションないよと怒られたら
$ apt-get install python-coverage

する。プロファイラも同じく

$ nosetests --with-profiler

すればいいけどそんなオプションないよと怒られたら
$ apt-get install python-profiler

そのまんまですね。

$ coverage html

って打つとHTMLでカバレッジを出力してくれます綺麗!

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7