I am currently working on one project that uses the Struts2 framework. We use a separate component to access the database, which is well tested. At the same time, the project we are working on has a lot of actions that are not verified. In most actions, we use at least one DB service call. Therefore, on the one hand, these actions are quite simple. I'm not sure - should unit tests be written for this or not?
I believe that good practice is a single recording tests, but these actions are so simple, and now I am under great pressure from the leadership. So, is it critical or not to leave Struts2 actions without unit tests?
hades source
share