TestRule () { return new TestWatcher() { @Override protected void succeeded(Description description) { onTestFinished(true, description); } @Override protected void failed(Throwable e, Description description) { logTestFailure(e); onTestFinished(false, description); } @Override protected void skipped(AssumptionViolatedException e, Description description) { onTestFinished(true, description); } @Override protected void starting(@NotNull Description d) { onTestStarted(); } }; }