[eclipse][java][test][カバレッジ][eclemma] ECLEMMAを使う

公式:http://www.eclemma.org/
アップデートサイト:http://update.eclemma.org/
ダウンロード:http://sourceforge.net/project/platformdownload.php?group_id=177969

○ Basic Blocks: This is EMMA's fundamental unit of coverage. A basic block is a sequence of bytecode instructions without any jumps or jump targets. A basic block is considered as covered when its last instruction has been executed.

    • EMMAの基本的なカバレッジ計測単位。一つのbasic blockはジャンプ命令以外のbytecode instructionsの並びから構成される。

 basic block は最後の命令が実行されたときにカウントされる。

○Lines: The number of covered Java source code lines. A source line is considered as covered if it contains at least one covered basic block. This counter is only available if the line numbers are included in the compiled class files (debug mode).

    • Javaソースコード行数。1行の中に含まれるbasic blockが1つでも実行されるとカウントされる。クラスファイルに行数情報がある場合(デバッグモードでコンパイルされている)ときだけ利用できる。

○ Bytecode Instructions: The number of bytecode instructions within the basic blocks. If no line information is available this is a good approximation for line coverage.

    • basic blocks内に含まれるbytecode instructionsの数。行数の情報が利用できない場合はラインカバレッジの近似となる

○ Methods: A method is considered as covered if at least one basic block of the method has been executed.

    • メソッドはメソッドに含まれるbasic blockが一つでも実行されるとカウントされる。

○ Types: A Java type is considered as covered if it has been loaded and initialized.

    • Java typeはロードされイニシャライズされるとカウントされる。