码迷,mamicode.com
首页 > 其他好文 > 详细

About the test in development

时间:2019-01-30 14:23:15      阅读:106      评论:0      收藏:0      [点我收藏+]

标签:classes   mil   actions   sse   written   ide   return   rod   first   

Unit test: Specify and test one point of the contract of single method of a class. This should have a very narrow and well defined scope. Complex dependencies and interactions to the outside world are stubbed or mocked.


Integration test: Test the correct inter-operation of multiple subsystems. There is whole spectrum there, from testing integration between two classes, to testing integration with the production environment.


Smoke test: A simple integration test where we just check that when the system under test is invoked it returns normally and does not blow up. It is an analogy with electronics, where the first test occurs when powering up a circuit: if it smokes, it‘s bad.


Regression test: A test that was written when a bug was fixed. It ensure that this specific bug will not occur again. The full name is "non-regression test".


Acceptance test: Test that a feature or use case is correctly implemented. It is similar to an integration test, but with a focus on the use case to provide rather than on the components involved.

 

About the test in development

标签:classes   mil   actions   sse   written   ide   return   rod   first   

原文地址:https://www.cnblogs.com/zjbfvfv/p/10337564.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!