Concordion > Commands > "execute" >

Fail Fast Passthrough

By default, exceptions are reported but Concordion continues processing the rest of the test. With the @FailFast annotation on a test, processing of a test is stopped once an exception is encountered.

In the case where a test that is annotated with @FailFast calls another test annotated with @FailFast, an exception encountered in the lower level test will stop processing of both tests.

The following examples use this setup of tests:

  1. The lower level test performs two actions: it first performs a command that throws an exception and then performs a command that would be successful.
  2. The higher level test performs two actions: it first executes the lower level test and then it performs a command that would be successfull.

Example - only one test annotated with @FailFast

If just the lower level test was annotated with @FailFast, we would expect 1 successful command (from the higher level test) and 1 exception.

Example - both annotated with @FailFast

If both tests are annotated with @FailFast, we would expect 0 successful command (from the higher level test) and 1 exception.