integration-testing

What's the difference between unit tests and integration tests? [duplicate]

匆匆过客 提交于 2019-11-26 02:26:24
问题 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

What is the difference between integration and unit tests? [closed]

痞子三分冷 提交于 2019-11-26 01:36:40
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 months ago . I know the so-called textbook definition of unit tests and integration tests. What I am curious about is when it is time to write unit tests... I will write them to cover as many sets of classes as possible. For example, if I have a Word class, I will write some unit tests

What Makes a Good Unit Test? [closed]

两盒软妹~` 提交于 2019-11-26 00:38:57
问题 I\'m sure most of you are writing lots of automated tests and that you also have run into some common pitfalls when unit testing. My question is do you follow any rules of conduct for writing tests in order to avoid problems in the future? To be more specific: What are the properties of good unit tests or how do you write your tests? Language agnostic suggestions are encouraged. 回答1: Let me begin by plugging sources - Pragmatic Unit Testing in Java with JUnit (There's a version with C#-Nunit