vendredi 20 février 2015

Is it still unit testing, when I write a WebInterface?

I have a more general question: Assuming I have a webapplication, for example using the Struts2 Framework. Therefor it becomes quite complicated to write Unit tests for functions, as you have to mock every aspect of the Framework. The Database+Connection, The Session, a LDAP-Connection or what ever else is needed, which I do not have written on my own It would be much easier to write the unit Tests so, that they run in a WebInterface inside the Base-Application, as all these things then allready would exist.


The question:


Would you guys still consider this as unit testing?


Aucun commentaire:

Enregistrer un commentaire