Posts

Showing posts from July, 2020

Should We Write a Unit Test or an End-to-End Test?

Image
It most often appears as a philosophical conversation along the lines of: When we can only write 1 test for this feature, if we write a unit test or a end-to-end evaluation? Basically, time and resources are restricted, so what kind of evaluation would be most effective? They answer the question: Does the machine ultimately deliver what it requires to deliver? I have also encountered scenarios, however, where individuals are hostile to device testing and view it as a waste of time. They advocate using end-to-end tests exclusively and view unit tests as restrictive to evolving the machine, requiring too much time and effort to refactor, or redundant, provided that the overall behaviors of the system are confirmed by finishing tests. In this article, I'll provide my view on this question. For somebody who has worked in another domain, where calculating and analyzing the entire software process is simpler, or where the operational environment is much more forgiving o