private <T extends Performable> void logSkippedTask() { StepEventBus.getEventBus().testSkipped(); }
public void suspendTest(TestResult result) { switch (result) { case PENDING: testPending(); break; case IGNORED: testIgnored(); break; case SKIPPED: testSkipped(); break; } }
private void updateResultFromTags(List<Tag> scenarioTags) { if (isManual(scenarioTags)) { updateManualResultsFrom(scenarioTags); } else if (isPending(scenarioTags)) { getStepEventBus(currentFeaturePath()).testPending(); } else if (isSkippedOrWIP(scenarioTags)) { getStepEventBus(currentFeaturePath()).testSkipped(); getStepEventBus(currentFeaturePath()).getBaseStepListener().overrideResultTo(TestResult.SKIPPED); } else if (isIgnored(scenarioTags)) { getStepEventBus(currentFeaturePath()).testIgnored(); getStepEventBus(currentFeaturePath()).getBaseStepListener().overrideResultTo(TestResult.IGNORED); } }
private void updateResultFromTags(List<Tag> scenarioTags) { if (isManual(scenarioTags)) { updateManualResultsFrom(scenarioTags); } else if (isPending(scenarioTags)) { getStepEventBus(currentFeaturePath()).testPending(); } else if (isSkippedOrWIP(scenarioTags)) { getStepEventBus(currentFeaturePath()).testSkipped(); getStepEventBus(currentFeaturePath()).getBaseStepListener().overrideResultTo(TestResult.SKIPPED); } else if (isIgnored(scenarioTags)) { getStepEventBus(currentFeaturePath()).testIgnored(); getStepEventBus(currentFeaturePath()).getBaseStepListener().overrideResultTo(TestResult.IGNORED); } }
private void markAsSkippedOrPendingIfAnnotatedAsSuchIn(List<String> tags) { if (isManual(tags)) { StepEventBus.getEventBus().testIsManual(); } if (isSkipped(tags)) { StepEventBus.getEventBus().testSkipped(); StepEventBus.getEventBus().getBaseStepListener().overrideResultTo(TestResult.SKIPPED); } if (isPending(tags)) { StepEventBus.getEventBus().testPending(); StepEventBus.getEventBus().getBaseStepListener().overrideResultTo(TestResult.PENDING); } if (isIgnored(tags)) { StepEventBus.getEventBus().testIgnored(); StepEventBus.getEventBus().getBaseStepListener().overrideResultTo(TestResult.IGNORED); } }