|
|
|
|
|
by TravHatesMe
1621 days ago
|
|
In other words, shouldn't we prefer integration testing, or perhaps partial integration testing. This requires an initial effort of setting up your test framework/environment, but in my experience integration tests provide good value for the time you put into testing. Rather than a granular test on a single class, test the orchestration of many classes. You end up hitting big % of code. As always, depends on the project. If we're building a rocket ship, you need both granular testing and coarse testing. |
|
As you say, depends on the project. What I described above is entirely free of side effects - I wouldn't dream of testing a web service this way.
Of course integration is never in conflict with unit testing - they're different and can happily coexist.