@Test public void shouldNotRenderScenarioWithSkipDocsTag() { final Feature feature = FeatureBuilder.instance().aFeatureWithOneScenarioWithOnePassingStep(); Scenario scenarioToSkip = ScenarioBuilder.instance().name("scenario to skip").tag(new Tag("@skipDocs")). type(Type.scenario).build(); ; feature.getScenarios().add(scenarioToSkip); List<Feature> features = new ArrayList<>(); features.add(feature); CukedoctorFeatureRenderer featureRenderer = new CukedoctorFeatureRenderer(); String resultDoc = featureRenderer.renderFeatureScenarios(feature, new CukedoctorDocumentBuilderImpl().createNestedBuilder().createNestedBuilder()); assertThat(resultDoc). doesNotContain("scenario to skip"). isEqualTo("==== Scenario: scenario" + newLine() + "description" + newLine() + newLine() + "==========" + newLine() + "Given::" + newLine() + "passing step icon:thumbs-up[role=\"green\",title=\"Passed\"] [small right]#(000ms)#" + newLine() + "==========" + newLine() + "" + newLine()); }
protected String renderFeatureScenarios(Feature feature, CukedoctorDocumentBuilder builder) { StringBuilder sb = new StringBuilder(); for (Scenario scenario : feature.getScenarios()) { sb.append(renderFeatureScenario(scenario, feature, builder)); } feature.setBackgroundRendered(false); return sb.toString(); }
CukedoctorFeatureRenderer extends AbstractBaseRenderer implements FeatureRenderer { protected String renderFeatureScenarios(Feature feature, CukedoctorDocumentBuilder builder) { StringBuilder sb = new StringBuilder(); for (Scenario scenario : feature.getScenarios()) { sb.append(renderFeatureScenario(scenario, feature, builder)); } feature.setBackgroundRendered(false); return sb.toString(); } }
CukedoctorFeatureRenderer extends AbstractBaseRenderer implements FeatureRenderer { protected String renderFeatureScenarios(Feature feature, CukedoctorDocumentBuilder builder) { StringBuilder sb = new StringBuilder(); for (Scenario scenario : feature.getScenarios()) { sb.append(renderFeatureScenario(scenario, feature, builder)); } feature.setBackgroundRendered(false); return sb.toString(); } CukedoctorFeatureRenderer();  CukedoctorFeatureRenderer(DocumentAttributes documentAttributes);  CukedoctorFeatureRenderer(CukedoctorConfig cukedoctorConfig); }
CukedoctorFeatureRenderer extends AbstractBaseRenderer implements FeatureRenderer { protected String renderFeatureScenarios(Feature feature, CukedoctorDocumentBuilder builder) { StringBuilder sb = new StringBuilder(); for (Scenario scenario : feature.getScenarios()) { sb.append(renderFeatureScenario(scenario, feature, builder)); } feature.setBackgroundRendered(false); return sb.toString(); } CukedoctorFeatureRenderer();  CukedoctorFeatureRenderer(DocumentAttributes documentAttributes);  CukedoctorFeatureRenderer(CukedoctorConfig cukedoctorConfig); @Override String renderFeature(Feature feature); @Override String renderFeatures(List<Feature> features); }
CukedoctorFeatureRenderer extends AbstractBaseRenderer implements FeatureRenderer { protected String renderFeatureScenarios(Feature feature, CukedoctorDocumentBuilder builder) { StringBuilder sb = new StringBuilder(); for (Scenario scenario : feature.getScenarios()) { sb.append(renderFeatureScenario(scenario, feature, builder)); } feature.setBackgroundRendered(false); return sb.toString(); } CukedoctorFeatureRenderer();  CukedoctorFeatureRenderer(DocumentAttributes documentAttributes);  CukedoctorFeatureRenderer(CukedoctorConfig cukedoctorConfig); @Override String renderFeature(Feature feature); @Override String renderFeatures(List<Feature> features);  }