Software Testing 3 Learn to install and use Junit, Hamcrest and Eclemma

---恢复内容开始---

Learn to install and use Junit, Hamcrest and Eclemma

1.Installization 

1.1 Junit

Firstly, download Junit 4.12 from http://junit.org/junit4/

 

In order to install Junit, open Eclipse and find Properties  -> Java Build path -> Add Extential Jars... and find the package you just downloaded.

After some time, your project is ready to use Junit.

1.2  Hamcrest

Firstly, download the package of Hamcrest from their official site.

Then, install the package just like the way you install junit.

1.3 Eclemma

Open Eclipse, and find Help ->Eclipse Marketplace , search for Eclemma and install it.

 

2. Use Junit for testing.

Right click the class you want to test and find New -> Junit test case

 

3.Use of eclemma

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值