mercredi 3 mars 2021

Why integration tests are harder to maintain than unit tests?

Found information on why integration tests are harder to write:

Integration testing is harder since it relies on dependencies, both internal and external. In order to perform integration testing, you often need to do tasks like:

  • prepare fake yet realistic test data
  • create or edit configuration files
  • start services

Not to mention that you need to thoroughly undo anything you’ve done after the test run finishes. Any evidence left behind can cause problems for the next test run. So, what makes integration testing harder is exactly what makes it useful: that it uses real dependencies.

Couldn't find why integration tests are harder to maintain than unit tests?

Aucun commentaire:

Enregistrer un commentaire