Skip to content
Sharp

Testing · interview question

What does a controller test mainly try to prove?

Multiple choiceMediumchapter-10-curatedpremiumtestingcontroller-testing
Choose one answer
Answer and explanation

Correct answer

D. That HTTP routing, validation, and serialization work at the web boundary

Why

Controller tests focus on the HTTP layer: route mapping, request validation, status codes, and serialization. They are narrower than full end-to-end tests and faster to run.

Test yourself on Testing

A free test with instant, explained results. No account needed.

Start free test
All Testing questions →