CukedoctorScenarioRenderer extends AbstractBaseRenderer implements ScenarioRenderer { String renderScenarioSteps(List<Step> scenarioSteps, Scenario scenario, Feature feature) { return stepsRenderer.renderSteps(scenarioSteps, scenario, feature, docBuilder.createNestedBuilder()); } CukedoctorScenarioRenderer();  CukedoctorScenarioRenderer(CukedoctorConfig cukedoctorConfig); @Override String renderScenario(Scenario scenario, Feature feature);  }
@Test public void shouldRenderFeatureStepsWithOneScenarioWithMultipleStep() { final Feature feature = FeatureBuilder.instance().aFeatureWithOneScenarioWithMultipleSteps(); List<Feature> features = new ArrayList<>(); features.add(feature); List<Step> steps = feature.getScenarios().get(0).getSteps(); CukedoctorScenarioRenderer scenarioRenderer = new CukedoctorScenarioRenderer(); String resultDoc = scenarioRenderer.renderScenarioSteps(steps, feature.getScenarios().get(0), feature); assertThat(resultDoc).isEqualTo("==========" + newLine() + "Given::" + newLine() + "passing step icon:thumbs-up[role=\"green\",title=\"Passed\"] [small right]#(000ms)#" + newLine() + "When::" + newLine() + "failing step icon:thumbs-down[role=\"red\",title=\"Failed\"] [small right]#(000ms)#" + newLine() + "When::" + newLine() + "pending step icon:thumbs-down[role=\"maroon\",title=\"Pending\"] [small right]#(000ms)#" + newLine() + "When::" + newLine() + "missing step icon:thumbs-down[role=\"blue\",title=\"Missing\"] [small right]#(000ms)#" + newLine() + "When::" + newLine() + "undefined step icon:thumbs-down[role=\"yellow\",title=\"Undefined\"] [small right]#(000ms)#" + newLine() + "Then::" + newLine() + "skipped step icon:thumbs-down[role=\"purple\",title=\"Skipped\"] [small right]#(000ms)#" + newLine() + "==========" + newLine() + newLine()); }