Loading...

Typical pitfalls in Unit Tests

  • Tests, methods and variables are not meaningful or significant easy to understand
  • Test case covers more than one scenario or different scenarios
  • Tests lack identical structure make it hard to identify and spot
  • Test have magic values without explanation
  • Motivation is hidden or obfuscated through initialization or exception handling