Test yourself under real exam conditions: 50 timed questions, 60 on the clock, pass mark 70%%. Instant score with a full review of everything you got wrong. Free — no account needed.
Exam details
A unit test verifies the behavior of a single, isolated piece of code (e.g., a function or method). Key characteristics:
test('add returns sum', () => { expect(add(2, 3)).toBe(5); });
An integration test verifies that multiple components work correctly together. Unlike unit tests, it exercises real interactions:
An E2E test simulates real user workflows through the entire application stack. It validates the system from the user's perspective:
Playwright, Cypress, or SeleniumThe Test Pyramid is a testing strategy that recommends:
TDD is a development practice where you write tests before writing production code. The cycle is: