Developers can approach unit testing vary differently:

  • Some developers might insist on TDD.
  • Some developers might resist unit testing at all costs, producing only the tests that they feel forced to write.
  • Some developers might prefer lumping multiple cases into a single test method.
  • Some might favor slower integration tests.

It’s important that your team get on the same page. Long debates or continual back-and-forth without resolution are rarely good uses of anyone’s time. Although a team will never agree on everything, you can at least find out what you do agree on and start moving in the direction of increased consensus.

Establishing unit-testing standards

It’s helpful to derive some standards around unit testing. Start small and seek to answer two questions:

  • What things do developers feel are wasting the most time of everyone?
  • What are simple standards that everyone can quickly agree on?

Get hands-on with 1400+ tech skills courses.