Common Unit Testing Anti-Patterns

#58 - Principles for Writing Valuable Unit Tests - Vladimir Khorikov

Topic 16 of 18

Published Oct 4, 2021 · Clip 47:12–50:05 (2:53)

Vladimir identifies the two most common unit-testing anti-patterns: testing private methods and testing private state. Both expose implementation details by definition, coupling tests to them and violating the resilience-to-refactoring pillar, making tests brittle.