软件测试lab1
---恢复内容开始---
作业要求:
Install Junit(4.12), Hamcrest(1.3) with Eclipse
a) Description of triangle problem:
Function triangle takes three integers a,b,c which are length of triangle sides; calculates whether the triangle is equilateral, isosceles, or scalene.
安装Junit(4.12), Hamcrest(1.3) Eclemma请看上一篇博客/上一次作业
首先写好需要用到的类和测试类
代码请看https://github.com/StarLight1125/Software-Test
Junit 和Eclemma 使用截图如下
用Eclemma看一下主类的覆盖情况,没有覆盖到所有
再加一个测试用例
---恢复内容结束---
转载于:https://www.cnblogs.com/quxingming/p/6529883.html
《新程序员》:云原生和全面数字化实践50位技术专家共同创作,文字、视频、音频交互阅读总结
- 上一篇: jpa tutorials
- 下一篇: 远程调用RestTemplate