What Mistakes Can You Make in Designing Your Automated Tests

From CitconWiki
Revision as of 21:04, 21 August 2007 by 124.171.190.162 (talk) (New page: We subtitled this session "Mistaeks I Hav Made" in [http://nat.truemesh.com/ Nat Pryce's] honour. Here's the list of gotchas we discussed: * Too much mocking. * Unit tests too tight. * N...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

We subtitled this session "Mistaeks I Hav Made" in Nat Pryce's honour.

Here's the list of gotchas we discussed:

  • Too much mocking.
  • Unit tests too tight.
  • Not refactoring test code as much as production code!
    • Copying and pasting test code.
  • Commenting out broken tests.
  • Testing at the wrong level.
  • Too many tests - take too long to run.
  • No cleanup after tests.
  • Not starting with clean test data setup.
  • Tests that don't respect the domain.
  • Only having big integration tests.
  • Not having team ownership of tests.
  • No test independence.
  • Tests that work by coincidence.
  • Time/timing dependent tests.
  • Not starting with a broken test.
  • Testing things that don't matter (for example, minor details of HTML).
  • Not testing exception cases.
  • Tests that spit out noise.
  • Tests that are just plain wrong.
  • Tests that don't check anything.
  • Not using data driven tests.