软件测试Lab Junit&Eclemma
1. Install Junit(4.12), Hamcrest(1.3) with Eclipse
从网上下载需要用到的两个jar包

下载地址:https://github.com/junit-team/junit/wiki/Download-and-Install
在Elcipse中 Project -> Properties中添加两个jar包

2. Install Eclemma with Eclipse
下载所需要的文件,并将其放在Elcipse主目录下的dropins中,在Eclipse中Help -> Install new software中
点击Add 然后点击 Local找到文件的所在位置

然后点击OK则可自动安装完成
截图如下:

3. Write a java program for the triangle problem and test the program with Junit.
项目代码已传到github中URL: https://github.com/clownice/TestTriangle
遇到的问题:创建的测试是创建Junit Test Case 而不是一个独立的类
截图如下:

浙公网安备 33010602011771号