/** * Do not use. Testing purposes only. */ public Result run(Runner runner) { Result result = new Result(); RunListener listener = result.createListener(); notifier.addFirstListener(listener); try { notifier.fireTestRunStarted(runner.getDescription()); runner.run(notifier); notifier.fireTestRunFinished(result); } finally { removeListener(listener); } return result; }
/** * Do not use. Testing purposes only. */ public Result run(Runner runner) { Result result = new Result(); RunListener listener = result.createListener(); fNotifier.addFirstListener(listener); try { fNotifier.fireTestRunStarted(runner.getDescription()); runner.run(fNotifier); fNotifier.fireTestRunFinished(result); } finally { removeListener(listener); } return result; }
/** * Do not use. Testing purposes only. */ public Result run(Runner runner) { Result result = new Result(); RunListener listener = result.createListener(); fNotifier.addFirstListener(listener); try { fNotifier.fireTestRunStarted(runner.getDescription()); runner.run(fNotifier); fNotifier.fireTestRunFinished(result); } finally { removeListener(listener); } return result; }
@Override public void testRunStarted(final Description description) throws Exception { notifier.fireTestRunStarted(description); }
@Override public void testRunStarted(final Description description) throws Exception { notifier.fireTestRunStarted(description); }
@Override public void testRunStarted(Description description) throws Exception { notifier.fireTestRunStarted(description); }
@Override public void fireTestRunStarted(Description description) { delegate.fireTestRunStarted(description); }
@Override public void fireTestRunStarted(Description description) { if (SUITE_STARTED.compareAndSet(false, true)) { super.fireTestRunStarted(description); } }
@Override public void start(String context, int count) { results.add(notifier -> notifier.fireTestRunStarted(module)); }
/** * @param description * @see org.junit.runner.notification.RunNotifier#fireTestRunStarted(org.junit.runner.Description) */ @Override public void fireTestRunStarted(Description description) { delegate.fireTestRunStarted(Util.convertDescription(repoURL,featureName,featureVersion,description)); }
@Override public void run(RunNotifier notifier) { assert rootDesc != null; notifier.fireTestRunStarted(rootDesc); long start = System.nanoTime(); runTests(notifier); long stop = System.nanoTime(); reportTime("Testing modules", start, stop); notifier.fireTestRunFinished(new Result()); }
@Override public void run(RunNotifier notifier) { assert rootDesc != null; notifier.fireTestRunStarted(rootDesc); long start = System.nanoTime(); runTests(notifier); long stop = System.nanoTime(); reportTime("Testing modules", start, stop); notifier.fireTestRunFinished(new Result()); }
@Override public void run(RunNotifier notifier) { setUpListener(notifier); notifier.fireTestRunStarted(getDescription()); super.run(notifier); } }
@Override public void run(RunNotifier notifier) { if (Configuration.current().drivers.stream().anyMatch(driver -> driver instanceof GridConfiguration && driver.as(GridConfiguration.class).enableLiveStream)) { liveStreamListener = new LiveStreamListener(); notifier.addListener(liveStreamListener); } notifier.fireTestRunStarted(getDescription()); super.run(notifier); }
@Override public void run(RunNotifier notifier) { if (Configuration.current().drivers.stream().anyMatch(driver -> driver instanceof GridConfiguration && driver.as(GridConfiguration.class).enableLiveStream)) { liveStreamListener = new LiveStreamListener(); notifier.addListener(liveStreamListener); } notifier.fireTestRunStarted(getDescription()); super.run(notifier); }
@Override public void run(RunNotifier notifier){ notifier.removeListener(GlobalVar.listenerUtils); notifier.addListener(GlobalVar.listenerUtils); notifier.fireTestRunStarted(getDescription()); super.run(notifier); } }
@Override public void run(RunNotifier notifier) { parallelize(options.parallelize()); if (Configuration.current().drivers.stream().anyMatch(driver -> driver instanceof GridConfiguration && driver.as(GridConfiguration.class).enableLiveStream)) { liveStreamListener = new LiveStreamListener(); notifier.addListener(liveStreamListener); } notifier.fireTestRunStarted(getDescription()); super.run(notifier); }
@Override public void run(RunNotifier notifier) { parallelize(options.parallelize()); if (Configuration.current().drivers.stream().anyMatch(driver -> driver instanceof GridConfiguration && driver.as(GridConfiguration.class).enableLiveStream)) { liveStreamListener = new LiveStreamListener(); notifier.addListener(liveStreamListener); } notifier.fireTestRunStarted(getDescription()); super.run(notifier); }
@Override public void run(final RunNotifier notifier) { if (launchServer) { // Start and stop the server notifier.addListener(new ServerStartStopListener()); notifier.fireTestRunStarted(Description.EMPTY); } if (!runParallel) { notifier.addListener(new DriverSuiteClosePoolListener()); } super.run(notifier); }
@Mock public static void fireTestRunStarted(Invocation invocation, Description description) { RunNotifier it = invocation.getInvokedInstance(); assert it != null; if (TestCoverage.INSTANCE != null && CodeCoverage.active()) { it.addListener(new JUnitListener()); } prepareToProceed(invocation); it.fireTestRunStarted(description); }