What's the difference between unit tests and integration tests? [duplicate]
问题 This question already has an answer here: What is the difference between integration and unit tests? [closed] 20 answers What\'s the difference between unit tests and integration tests? Are there different names for these tests? Like some people calling unit tests functional tests, etc? 回答1: A unit test is a test written by the programmer to verify that a relatively small piece of code is doing what it is intended to do. They are narrow in scope, they should be easy to write and execute, and