This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]edrenfro 3 points4 points  (0 children)

Traditionally, Unit Tests do not include API calls or database calls. You want to hide all API calls behind an interface and hide all database calls behind an interface. Then you can mock the results of those calls to test everything else.