cucumber-forge-report-generator
Version:
NPM Library for Generating Static Cucumber Reports
105 lines (101 loc) • 3.68 kB
HTML
<div class="feature-wrapper" id={{featureWrapperId}}>
{{#if tagString}}
<div class="tags">{{tagString}}</div>
{{/if}}
<h2>
<span class="title">{{name}}</span>
<a class="anchor" id="{{featureId}}" feature-button="{{featureButtonId}}" href="#{{featureId}}">
<i class="fas fa-link"></i>
</a>
</h2>
<div class="feature-body">
<div class="feature-description"><pre><i>{{description}}</i></pre></div>
<h3>{{this.background.name}}</h3>
<div class="scenario-body">
{{#if this.background.description}}
<div class="scenario-description"><pre><i>{{this.background.description}}</i></pre></div>
{{/if}}
{{#each this.background.steps}}
<p>{{this.name}}</p>
{{#if this.table.length}}
<div class="table-wrapper">
<table>
{{#each this.table}}
<tr>
{{#each this}}
<td>{{this}}</td>
{{/each}}
</tr>
{{/each}}
</table>
</div>
{{/if}}
{{#if this.docString}}
<div class="docstring"><pre>{{this.docString}}</pre></div>
{{/if}}
{{/each}}
</div>
{{#each scenarios}}
{{#unless @first}}
<hr class="scenario-divider">
{{/unless}}
{{#if tagString}}
<div class="tags">{{tagString}}</div>
{{/if}}
<h3>
<span class="title">{{this.name}}</span>
<a class="anchor" id="{{scenarioId}}" scenario-button="{{scenarioButtonId}}" href="#{{scenarioId}}">
<i class="fas fa-link"></i>
</a>
</h3>
<div class="scenario-body">
{{#if this.description}}
<div class="scenario-description"><pre><i>{{this.description}}</i></pre></div>
{{/if}}
{{#each this.steps}}
<p>{{this.name}}</p>
{{#if this.table.length}}
<div class="table-wrapper">
<table>
{{#each this.table}}
<tr>
{{#each this}}
<td>{{this}}</td>
{{/each}}
</tr>
{{/each}}
</table>
</div>
{{/if}}
{{#if this.docString}}
<div class="docstring"><pre>{{this.docString}}</pre></div>
{{/if}}
{{/each}}
{{#if this.examples}}
<p>{{this.examples.name}}</p>
{{#if this.examples.table.length}}
<div class="table-wrapper">
<table>
{{#each this.examples.table}}
{{#if @first}}
<tr>
{{#each this}}
<th>{{this}}</th>
{{/each}}
</tr>
{{else}}
<tr>
{{#each this}}
<td>{{this}}</td>
{{/each}}
</tr>
{{/if}}
{{/each}}
</table>
</div>
{{/if}}
{{/if}}
</div>
{{/each}}
</div>
</div>