test coverage with djUnit 搭建

上一篇 / 下一篇  2011-05-09 19:42:51 / 天气: 晴朗 / 心情: 平静 / 精华(1) / 置顶(1)

1:download the proper djUnit from:

http://works.dgic.co.jp/djwiki/Viewpage.do?pid=@646A556E697420446F776E6C6F6164

2:unzip the file into the Eclipse installation  directory(or the plug-in directory);

3:restart your Eclipse.

4:runnig djUnit(two ways):

     4.1 you can right click on the test case class or test suite class and select Run As >djUnit Test.

     4.2 you can select a test case or suite and click the arrow on theicon or select from the toolbar,and select Run As >djUnit Test.

5:after you run the djUnit,you will see the djUnit Coverage Report like below.
The djUnit covearge report is broken into three areas and only reports coverage statistics for statement(line) and branch coverage.The first provides the overall coveragefigures for the entire project.The second area provide coverage information about each package in the report.The last area provides coverage information about each file in the project.If you select the file name in the coverage report,the source code shown in the editor in the editor with indicators by the lines that are not covered by test cases.

TAG: Coverage coverage djUnit eclipse Eclipse test Test

 

评分:0

我来说两句

日历

« 2024-04-19  
 123456
78910111213
14151617181920
21222324252627
282930    

我的存档

数据统计

  • 访问量: 672
  • 日志数: 1
  • 建立时间: 2011-05-09
  • 更新时间: 2011-05-09

RSS订阅

Open Toolbar