Relative Content

Tag Archive for integration-tests

Should I skip unit tests if integration tests cover the same scenarios?

I have a service method called acceptOrDenyJoinRequest that follows a logic similar to this flowchart (green boxes are ignored in code, and the light gray box calls an external service). According to Martin Fowler’s article on the testing pyramid, unit tests should cover all non-trivial code paths, and integration tests should be written for pieces of code that interact with external systems, like databases.

Should I skip unit tests if integration tests cover the same scenarios?

I have a service method called acceptOrDenyJoinRequest that follows a logic similar to this flowchart (green boxes are ignored in code, and the light gray box calls an external service). According to Martin Fowler’s article on the testing pyramid, unit tests should cover all non-trivial code paths, and integration tests should be written for pieces of code that interact with external systems, like databases.