Unit Test Key Points

In this small passage, I would like to briefly introduce the key points of implementing unit testing, also describe unit test review check points.

 

1. When should unit test be started?

Unit test is very improtant, and can be started as soon as APIs is defined.

 

2. Why unit test?

Hunting errors as early as possible, make sure APIs work correctly.

Hunting errors which cannot be found by regression testing, functional testing.

Start before UI ready.

 

3. Key points of unit test implementation?

(1) Focus on errors hunting.

(2) Follow coding conventions when writting unit test code.

(3) Make test coverage as one of the important target of unit test, especially concentrate on Path Coverage.

(4) Make sure all unit test code is executed when source code changes. That is to say, when a large range of source code of the software changes, testers need to run a full cycle of unit test code to ensure that no regression errors are introduced.

(5) For some embedded software, all the test code need to implement only on develpment environment. What's more, the test code should be executed on target HW.

 

 4. Unit test review check points?

(1) Static code check. To verify if the module to test follows common coding conventions, for examples, Naming conventions, comments formats, etc.

(2) Configuration files check.

(3) Write data drive test code.

(4) Improve test coverage.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值