Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

microgherkin

mattwynne edited this page Sep 20, 2011 · 3 revisions

microgherkin is a microdata vocabulary for gherkin. Here is a proposed example:

<section itemscope itemtype="http://cukes.info/Feature">
  <h1 itemprop="feature">This is the feature name</h1>
  <h2 itemprop="scenario">This is the scenario name</h2>
  <h3 itemprop="step">This is the step name</h3>
  <table itemprop="step_table">
    <tr>
      <td>a</td>
      <td>b</td>
    </tr>
    <tr>
      <td>c</td>
      <td>d</td>
    </tr>
  </table>
</section>

Comments

  • I think the steps should be list items in an ordered list <ol> tag, rather than a heading —MattWynne
Clone this wiki locally