CS FundamentalsHardProduct-company placement

A team's suite has 50 unit tests, 200 integration tests and 1,500 slow UI end-to-end tests, and builds take hours. Which anti-pattern is this, and what does the test pyramid recommend?

  1. A. The ice-cream cone; push most checks down to many fast unit tests, fewer integration tests and only a thin layer of end-to-end tests
  2. B. The test pyramid itself; keep it
  3. C. The hourglass; add more integration tests only
  4. D. Big-bang integration; integrate all modules at once

Correct answer: A. The ice-cream cone; push most checks down to many fast unit tests, fewer integration tests and only a thin layer of end-to-end tests

An inverted pyramid (ice-cream cone) relies on slow, brittle UI tests. The pyramid puts most tests where they are fast and precise, using end-to-end tests only for key user journeys.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic