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?
- 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
- B. The test pyramid itself; keep it
- C. The hourglass; add more integration tests only
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- An Orders service consumes a Pricing service's API. The teams want to catch breaking API changes before deployment without spinning up…
- Match each test double. P: an in-memory database used instead of PostgreSQL. Q: an object that returns a canned exchange rate of 83.0…
- Instead of hand-picking examples, a developer states that for any list xs, sorted(sorted(xs)) == sorted(xs) and len(sorted(xs)) ==…
- A password must be 8-16 characters long and contain at least one digit. Using weak equivalence partitioning, where all valid classes can…
- A web form has exactly two parameters: browser (Chrome, Firefox, Safari) and OS (Windows, macOS, Linux). How many tests does all-pairs…
- A team has run the same 300 regression tests every release for two years. They now find almost no bugs, yet customers report new ones in…