Software Testing_Lab 1 Junit and Eclemma

1. Install Junit(4.12), Hamcrest(1.3) with Eclipse

1.1 download Junit(4.12), Hamcrest(1.3)

 

1.2 Click the project with the right button, select properties ->Java Build Path ->Libraries->Add external JARs

Then select the junit-4.12.jar and Hamcrest-core-1.3

 

2. Install Eclemma with Eclipse

2.1. Put the Eclemma.zip under the directory

2.2. Click help->install new software->add

 

3.Write a java program for the triangle problem and test the program with junit.

3.1. Build a project and  Write the code.

3.2.Add a source folder which will contain test package and the test class and Write test code

3.3. Run it as JUnit test and use eclemma.

And then put it on GIT.

That's all.

 

转载于:https://www.cnblogs.com/byqdns/p/6545132.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值