首页 > 其他 > 详细

about unit test

时间:2019-01-30 13:59:20      阅读:147      评论:0      收藏:0      [点我收藏+]
  • Use unify unit test framework CPPUnit 1.12.1/Visual stdio
  • Unit is a class or a function
  • Test per major component
  • Test by developer
  • Set up clean environment for each test: isolate each test
  • Test shall be automatic
  • Unit test code also in review
  • Same coding style as normal implementation
  • Only test public interfaces, no database, no network, no files operations, stub it.
  • One test one expectation
  • Meaningful naming
  • When see the result, you don’t need to debug the code

 

about unit test

原文:https://www.cnblogs.com/zjbfvfv/p/10337568.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!