Hacker News new | ask | show | jobs
by SideburnsOfDoom 968 days ago
If the parent comment is also saying "If a test describes a business requirement rather than a class and method, then it must be an integration test"

Then I think that parent is wrong, or rather that "it depends on what you mean by integration test" an further, this definition of "integration test" is an extremely unhelpful one that I do not advise using. And it better fits what was originally intended as "unit test". The name "unit" is not a synonym for class or method, it is your choice what the "unit" is, and a lot of the time it is best done as a small chunk of business requirement.

mocking at the level of well established boundaries such as databases and http services, is all that's needed.