t_wadaさんがつぶやいていたEclEmmaが結構便利。
レガシーコード改善のデモで使ったテストカバレッジプラグインはこれです URL #tddbc
2010-07-11 12:52:44 via web
いいところ
- Junitを実行するのと全く同じ設定で実行できる(Non-invasive)
- 軽く軽快に実施できる(Fast develop/test cycle)
- Junit実行後すぐにEclipse上にハイライトしてくれる。(Rich coverage analysis)
* Fast develop/test cycle: Launches from within the workbench like JUnit test runs can directly be analyzed for code coverage.
http://www.eclemma.org/
* Rich coverage analysis: Coverage results are immediately summarized and highlighted in the Java source code editors.
* Non-invasive: EclEmma does not require modifying your projects or performing any other setup.
導入方法
以下アドレスを「ヘルプ」⇒「新規ソフトウエアのインストール」の「作業対象」欄に入
れるだけ。後は適当にOKを押す。
http://update.eclemma.org/
これだけ
導入もとても簡単なのでお勧め。
enjoy testing!