LoginSignup
0
0

More than 3 years have passed since last update.

STSで行うカバレッジ測定

Posted at
  1. Eclipseマーケットプレイスで「EclEmma Java Code Coverage」をインストールし、再起動する

スクリーンショット 2021-01-23 12.39.00.png

スクリーンショット 2021-01-23 12.38.42.png

2. 「src/test.java」を右クリックで画像のようにJUnitを選択して実行
スクリーンショット 2021-01-23 12.40.36.png

3. 以下の画面のように、ソースコードに背景色がつく。
  緑:OK 黄色:分岐の片方しか通っていない 赤:通っていない。これを全て緑にすると、「カバレッジ100%」
スクリーンショット 2021-01-23 12.43.06.png
全体のカバレッジのパーセントは「カバレッジ」のビューで確認できる
スクリーンショット 2021-01-23 12.45.39.png

0
0
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
0
0