DEV Community

Discussion on: What are your biggest problems with unit testing?

Collapse
 
joelmccracken profile image
Joel McCracken
  • unit tests often test incidental as opposed to essential qualities of code. The more fine-grained a test is the more likely it tests incidentals. "Mockist" code seems to fall victim to this, except when used to stub out an external dependency.

  • valuable tests are super hard to deal with because they tend to include a lot of dependencies.

  • tests that communicate the "what" of what they are testing, but not the "why". this makes it really hard to know when a certain test can be changed or is no longer needed.