On Tue, Sep 25, 2012 at 10:09 AM, Fabian Christ
<[email protected]> wrote:
> ...why not handle all unit tests that access external services as
> integration-tests? IMHO these are no unit tests anymore if they access
> an external resource. So migrating them to integration-tests would be
> solution....

+1, having unit tests that timeout on connections or fail silently
because an external service is not there is not good.

Maybe we need three types of tests:
1) Unit tests - quick, no external connections
2) Integration tests in offline mode
3) Integration tests in online mode, activated by a Maven profile or -Dproperty

-Bertrand

Reply via email to