The testing community reserves the word stub for state based testing.
测试社区中,stub这个词是保留给基于状态测试的。
Use stubs for state based testing, use mocks for interaction based testing.
用stub来做基于状态的测试,使用mock做基于交互的测试。
Now, the common used methods of classes testing are state -based testing and data flow testing.
当前,类测试常用的方法是基于状态的测试和数据流测试。
应用推荐