|
|
|
|
|
by radub
3656 days ago
|
|
The relevant tests fall somewhere between unit tests and integration tests. Many are intended as unit tests, but we prefer to test them on top of the "real" implementations of the layers underneath (instead of mocks) so they are integration tests as well. > If it's a feature or integration test, why is it a problem to pull in the other packages? The compiler does not allow the cyclic dependency (even if it's only caused by testing code). |
|
And to pick a nit, to me, if there are several units of your system pulled in, it's arguably not a unit test. It's an integration test.
I don't love mocks, but I don't hate them either. They have their place as part of an overall testing pyramid.