软件测试:三角形

一、junit,hamcrest,eclemma的安装

  junit官网上不能下载,但是eclipse带有junit,所以右键单击项目,build path->add libraries中添加junit和hamcrest。

  eclemma:将老师给的压缩包eclemma2.3.2解压到eclipse目录下的dropins中,同时删除全是大写字母的文件夹。

二、测试结果

  没有fault,没有error,也没有failure

三、覆盖报告

  由下方的窗口可知,该次测试为100%覆盖。

posted @ 2018-03-24 19:55  长恨歌里的狐狸精  阅读(171)  评论(0编辑  收藏  举报