On Mon, Aug 15, 2016 at 8:35 AM, Richard W. Adams <[email protected]> wrote:

> I've been taking a first look at documentation for the Failsafe plugin. It
> looked straightforward until I got to the part that discussed Jetty.  I
> found the Jetty section confusing, as it seems to imply that Jetty is
> required to Failsafe. I hope I'm misunderstanding it, and that Failsafe
> can be run *without* Jetty.
>

While typically we use Failsafe with a container such as Jetty, it is not
required.


Another point where I found the documentation somewhat lacking:  Under
> what scenarios would I WANT to run Jetty & Failsafe together? Is this only
> for server applications, or is there some other use case I'm overlooking?
>

Failsafe is for various types of integration testing, which includes
in-container testing with containers such as Jetty, Tomcat, et al.
Failsafe's specialty is the pre-test-execution hook for setup needs and
post-test-execution for shutdown needs.  If your testing situation does not
require those, then perhaps the Surefire plugin will do.  The plugins are
nearly the same, share common code, with Surefire focused on unit tests and
Failsafe focused on integration tests (requiring the hooks).

Reply via email to