@Override public void run(final RunNotifier notifier) { EachTestNotifier testNotifier = new EachTestNotifier(notifier, getDescription()); try { Statement statement = classBlock(notifier); statement.evaluate(); } catch (AssumptionViolatedException e) { testNotifier.fireTestIgnored(); } catch (StoppedByUserException e) { throw e; } catch (Throwable e) { testNotifier.addFailure(e); } }
@Override public void run(final RunNotifier notifier) { final Description description = getDescription(); final EachTestNotifier testNotifier = new EachTestNotifier(notifier, description); final Statement statement = classBlock(notifier); try { statement.evaluate(); } catch (AssumptionViolatedException e) { testNotifier.fireTestIgnored(); } catch (StoppedByUserException e) { // not retrying when user explicitly stops the test throw e; } catch (Throwable e) { // retry on any other exception retry(description, testNotifier, statement, e); } }
@Override public void run(final RunNotifier notifier) { EachTestNotifier testNotifier = new EachTestNotifier(notifier, getDescription()); try { Statement statement = classBlock(notifier); statement.evaluate(); } catch (AssumptionViolatedException e) { testNotifier.fireTestIgnored(); } catch (StoppedByUserException e) { throw e; } catch (Throwable e) { testNotifier.addFailure(e); } }
testNotifier.fireTestIgnored(); } catch (StoppedByUserException e) { throw e;
@Override public void run(RunNotifier notifier) { registerRunNotifierListener(notifier); Description description = getDescription(); enableRateRunner = isRateRunnerEnabled(); EachTestNotifier testNotifier = new EachTestNotifier(notifier, description); try { Statement statement = classBlock(notifier); statement.evaluate(); } catch (AssumptionViolatedException e) { testNotifier.fireTestIgnored(); } catch (StoppedByUserException e) { throw e; } catch (Throwable e) { testNotifier.addFailure(e); } }
@Override public void runChild(final FrameworkMethod method, final RunNotifier notifier) { final Description description = describeChild(method); if (this.isIgnored(method)) { notifier.fireTestIgnored(description); } else { final EachTestNotifier eachNotifier = new EachTestNotifier(notifier, description); eachNotifier.fireTestStarted(); boolean ignored = false; try { this.methodBlock(method).evaluate(); } catch (AssumptionViolatedException ave) { eachNotifier.addFailedAssumption(ave); } catch (Throwable e) { if (validateForGraphComputer(e)) { eachNotifier.fireTestIgnored(); logger.info(e.getMessage()); ignored = true; } else eachNotifier.addFailure(e); } finally { if (!ignored) eachNotifier.fireTestFinished(); } } }
private void runIgnored(EachTestNotifier eachNotifier) { eachNotifier.fireTestIgnored(); }
public void finishExecutionUnit() { if (ignoredStep && !failedStep) { executionUnitNotifier.fireTestIgnored(); } executionUnitNotifier.fireTestFinished(); }
public void finishExecutionUnit() { if (ignoredStep && !failedStep) { executionUnitNotifier.fireTestIgnored(); } executionUnitNotifier.fireTestFinished(); }
@Override protected final void runChild(FrameworkMethod method, RunNotifier notifier) { EachTestNotifier eachNotifier = makeNotifier(method, notifier); if (shouldRunTestMethod.apply(method)) { super.runChild(method, notifier); } else { eachNotifier.fireTestIgnored(); } }
private void addFailureOrIgnoreStep(Result result) { if (strict) { stepNotifier.fireTestStarted(); addFailure(result); stepNotifier.fireTestFinished(); } else { ignoredStep = true; stepNotifier.fireTestIgnored(); } }
private void addFailureOrIgnoreStep(Result result) { if (strict) { stepNotifier.fireTestStarted(); addFailure(result); stepNotifier.fireTestFinished(); } else { ignoredStep = true; stepNotifier.fireTestIgnored(); } }
@Override public void run(final RunNotifier notifier) { super.run(notifier); if (instanceSetupListener != null) { try { instanceSetupListener.runAfterAllTests(); } catch (final AssumptionViolatedException e) { new EachTestNotifier(notifier, getDescription()).fireTestIgnored(); } catch (final Exception e) { throw new IllegalStateException(e); } } } }
@Override public void run(final RunNotifier notifier) { log.info("run()"); EachTestNotifier testNotifier = new EachTestNotifier(notifier, getDescription()); try { Statement statement = classBlock(notifier); statement.evaluate(); } catch (AssumptionViolatedException e) { testNotifier.fireTestIgnored(); } catch (StoppedByUserException e) { throw e; } catch (Throwable e) { testNotifier.addFailure(e); } }
@Override public void run(final RunNotifier notifier) { log.info("run()"); EachTestNotifier testNotifier = new EachTestNotifier(notifier, getDescription()); try { Statement statement = classBlock(notifier); statement.evaluate(); } catch (AssumptionViolatedException e) { testNotifier.fireTestIgnored(); } catch (StoppedByUserException e) { throw e; } catch (Throwable e) { testNotifier.addFailure(e); } }
@Override public void run(final RunNotifier notifier) { EachTestNotifier testNotifier = new EachTestNotifier(notifier, getDescription()); try { Statement statement = classBlock(notifier); statement.evaluate(); } catch (AssumptionViolatedException e) { testNotifier.fireTestIgnored(); } catch (StoppedByUserException e) { throw e; } catch (Throwable e) { testNotifier.addFailure(e); } }
@Override public void run(final RunNotifier notifier) { EachTestNotifier testNotifier = new EachTestNotifier(notifier, getDescription()); try { Statement statement = this.classBlock(notifier); statement.evaluate(); } catch (AssumptionViolatedException e) { testNotifier.fireTestIgnored(); } catch (StoppedByUserException e) { throw e; } catch (Throwable e) { testNotifier.addFailure(e); } }
@Override public void run(final RunNotifier notifier) { EachTestNotifier testNotifier = new EachTestNotifier(notifier, getDescription()); try { Statement statement = this.classBlock(notifier); statement.evaluate(); } catch (AssumptionViolatedException e) { testNotifier.fireTestIgnored(); } catch (StoppedByUserException e) { throw e; } catch (Throwable e) { testNotifier.addFailure(e); } }
@Override public void run(final RunNotifier notifier) { EachTestNotifier testNotifier = new EachTestNotifier(notifier, getDescription()); try { Statement statement = classBlock(notifier); statement.evaluate(); } catch (AssumptionViolatedException e) { testNotifier.fireTestIgnored(); } catch (StoppedByUserException e) { throw e; } catch (Throwable e) { testNotifier.addFailure(e); } }
@Override public void run(final RunNotifier notifier) { EachTestNotifier testNotifier = new EachTestNotifier(notifier, getDescription()); Statement statement = classBlock(notifier); try { statement.evaluate(); } catch (AssumptionViolatedException ave) { testNotifier.fireTestIgnored(); } catch (StoppedByUserException sbue) { throw sbue; } catch (Throwable t) { LOG.warning("Retry class: " + getDescription().getDisplayName()); retry(testNotifier, statement, t, getDescription()); } }