vendredi 22 septembre 2017

How to differentiate unit tests from integration ones in Maven multi-module project?

I read a lot of documentation and opinions about Unit vs Integration tests. Actually it is really hard to differentiate test types in real life.

In my case, we have multi-module maven project. One module is self-sufficient (let's call it module M) and has no dependencies from other ones. But it consists of several classes which have dependencies among them (for using class A, one should instantiate class B and C and call on them methods f() and g()).

So the question is: If I am going to test class A in module M, can I consider it unit test or it is still integration?

Aucun commentaire:

Enregistrer un commentaire