Library › Book 22 › Anti-Patterns and How to Fix Them
Anti-Patterns and How to Fix Them
8.1🔒The Ice Cream Cone (Inverted Pyramid)The ice cream cone is the most common anti-pattern. It occurs when the QA team is the primary author of tests and writes what they know…
8.2🔒The HourglassSymptoms: - Unit tests pass and E2E tests fail -- but nobody knows why because the integration layer is untested - Bugs cluster at service…
8.3🔒The Mushroom CloudSymptoms: - The team spends 80% of testing time on manual regression - Releases are delayed because manual regression takes 3-5 days - The…
8.4🔒The Swiss CheeseNot a shape anti-pattern but a coverage anti-pattern. Some features are thoroughly tested while others are barely tested. Escaped defects…
8.5🔒Q&ASelf-Assessment Quiz: Chapter 81. What is the root cause of the ice cream cone anti-pattern? 2. In the hourglass anti-pattern, where do bugs cluster? 3. Why is the…
8.6🔒Key Takeaways- The ice cream cone (too many E2E, too few unit) is the most common anti-pattern - The hourglass (missing integration layer) is the most…
8.7🔒Hands-On ExercisesExercise 8.1 (Beginner): Which anti-pattern best describes your current project? Write a one-paragraph assessment with evidence.
8.8🔒Q&AResume phrasing- Diagnosed and remediated an ice cream cone anti-pattern by converting 80 E2E tests to unit and integration tests, reducing pipeline…
8.9🔒Q&ACover letter framingI have deep experience diagnosing and fixing test architecture anti-patterns. Whether the issue is an ice cream cone (too many E2E, too few…
8.10🔒Q&AInterview framing"I approach anti-pattern remediation in phases. First, I diagnose: I count tests by level, measure execution time by level, and map…
8.11🔒Q&AWhat not to say- "We should rewrite all our tests at once" -- big-bang rewrites fail; phased migration is the only sustainable approach. - "The ice cream…
8.12🔒Q&AQuestion 1Prompt: You inherit a test suite that is a classic ice cream cone: 300 E2E tests, 50 integration tests, 100 unit tests. Pipeline takes 55…
8.13🔒Q&AQuestion 2Prompt: How do you identify the hourglass anti-pattern when both unit tests and E2E tests are green? What a strong answer should cover…
8.14🔒Q&AQuestion 3Prompt: A QA engineer on your team resists deleting flaky, low-value tests because "deleting tests reduces coverage." How do you respond?…