Skip to main content
InterviewHubPRO
Section Overview
Q3

Question 3 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

6%
Software Testing & QA (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

Unit Testing vs. Integration Testing vs. End-to-End (E2E) Testing.

junior LevelTesting

In Simple Words:

DimensionUnit TestsIntegration TestsEnd-to-End (E2E) Tests
ScopeSingle function, class, or componentTwo or more modules (Service + DB)Full system (Browser + API + DB)
DependenciesAll external I/O mockedReal/Containerized DB, Redis, APIsFull real running environment
Execution SpeedMilliseconds ($<5\text{ms}$)Hundreds of milliseconds ($100\text{ms}-1\text{s}$)Multiple seconds ($5\text{s}-30\text{s}$)
Debugging EasePinpoints exact line of failureIdentifies boundary contract bugsHard to isolate root cause
Primary ToolsVitest, Jest, JUnit, PyTestTestcontainers, Supertest, MSWPlaywright, Cypress, Maestro