Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • the question you linked is very interesting and i learned some useful things. However, i'm not fully sastisfied with the answer : in my case, the curl wrapper does more than just calling the curl library (not a lot of things but there is a little logic in the class). So does this wrapper needs to be tested in a unit test or is an integration test enough ? Commented Oct 27, 2016 at 13:54
  • that seems to be addressed by an answer in another related question: "Test everything that could possibly break..." Commented Oct 27, 2016 at 13:59
  • well i think i have an answer with all these related questions. i'm still not absolutely convinced that what i chose to do is the best answer but it seems that there is no universal answer as the limit between unit and integration test is very tiny Commented Oct 27, 2016 at 14:20
  • An integration test tests the interaction between objects. If you're using mocks, it's not an integration test. Commented Oct 27, 2016 at 15:49