Unit Testing C_C++ Code_ When to Mock.pdf

时间:2023-04-22 07:42:37
【文件属性】:

文件名称:Unit Testing C_C++ Code_ When to Mock.pdf

文件大小:706KB

文件格式:PDF

更新时间:2023-04-22 07:42:37

Unit Testing Mock

Useful questions to determine whether or not to mock - Is the real collaborator a source of risk for the stability of my tests? - Is it difficult to initialize the real collaborator? - Is it possible to verify the state of the collaborator after the test, to decide the test status? - How long will it take for the collaborator to respond? 3 Straightforward Reasons to Mock 1. Collaborator not yet implemented or still under development 2. Hardware independence 3. Fault injection


网友评论