/** * Tell Thucydides that a test is finished, and to generate the test reports for that test. */ public void testFinished() { notifyEventBus().testFinished(); }
public TestCase<T> finish() { if (!finished) { StepEventBus.getEventBus().testFinished(); this.finished = true; } return this; }
/** * Tell Thucydides that a test is finished, and to generate the test reports for that test. */ public void testFinished() { notifyEventBus().testFinished(); }
/** * Tell Thucydides that a test is finished, and to generate the test reports for that test. */ public void testFinished() { notifyEventBus().testFinished(); }
@Override public void testFinished(final Description description) throws Exception { if (testingThisTest(description)) { StepEventBus.getEventBus().testFinished(); endTest(); } }
private void markAsPending(FrameworkMethod method) { stepListener.testStarted(Description.createTestDescription(method.getMethod().getDeclaringClass(), testName(method))); StepEventBus.getEventBus().testPending(); StepEventBus.getEventBus().testFinished(); }
private void handleTestCaseFinished(TestCaseFinished event) { if (examplesRunning) { handleResult(event.result); } if (event.result.is(Result.Type.FAILED) && noAnnotatedResultIdDefinedFor(event)) { getStepEventBus(event.testCase.getUri()).testFailed(event.result.getError()); } else { getStepEventBus(event.testCase.getUri()).testFinished(); } stepQueue.clear(); if (examplesRunning) { finishExample(); } }
private void handleTestCaseFinished(TestCaseFinished event) { if (examplesRunning) { handleResult(event.result); } if (event.result.is(Result.Type.FAILED) && noAnnotatedResultIdDefinedFor(event)) { getStepEventBus(event.testCase.getUri()).testFailed(event.result.getError()); } else { getStepEventBus(event.testCase.getUri()).testFinished(); } stepQueue.clear(); if (examplesRunning) { finishExample(); } }
@Override public void afterScenario() { Scenario scenario = currentScenario(); logger.debug("afterScenario : {}", scenario.getTitle()); List<String> scenarioTags = scenarioTags(scenario); markAsSkippedOrPendingIfAnnotatedAsSuchIn(scenarioTags); if (givenStoryMonitor.isInGivenStory() || shouldNestScenarios()) { StepEventBus.getEventBus().stepFinished(); } else { if (!(isPending(scenarioTags) || isSkipped(scenarioTags) || isIgnored(scenarioTags))) { StepEventBus.getEventBus().testFinished(); } activeScenarios.pop(); } ThucydidesWebDriverSupport.clearStepLibraries(); }
public void afterScenario() { if (givenStoryMonitor.isInGivenStory() || shouldNestScenarios()) { StepEventBus.getEventBus().stepFinished(); } else { StepEventBus.getEventBus().testFinished(); if (isPendingScenario() || isPendingStory()) { StepEventBus.getEventBus().setAllStepsTo(TestResult.PENDING); } if (isSkippedScenario() || isSkippedStory()) { StepEventBus.getEventBus().setAllStepsTo(TestResult.SKIPPED); } activeScenarios.pop(); } }