Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (67 sloc) 3.21 KB
<!doctype html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<title>Feature</title>
<meta name="description" content="Behaviour Driven Development with Elegance and Joy">
<meta name="keywords" content="bdd,tdd,atdd,gherkin,cucumber,ruby,java,csharp,c#,scala,groovy,clojure,javascript,ioke">
<meta name="author" content="Aslak Hellesøy" />
<script src="js/head.min.js"></script>
<link rel="stylesheet" href="css/earth-pygments.css" type="text/css" />
<link rel="stylesheet" href="css/console.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="css/filesystem.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen, projection" />
</head>
<body>
<div class="site">
<ul class="filesystem">
<li class="dir">features
<ul>
<li class="feature">f.feature
<div class="content highlight"><pre><span class="k">Feature:</span><span class="nf"> With and without hooks</span>
<span class="nf"> </span><span class="k">Scenario:</span><span class="nf"> using hook</span>
<span class="k"> Given </span><span class="nf">this step works</span>
<span class="nf"> </span><span class="nt">@no-boom</span><span class="nf"></span>
<span class="nf"> </span><span class="k">Scenario:</span><span class="nf"> omitting hook</span>
<span class="k"> Given </span><span class="nf">this step works</span>
</pre></div>
</li>
<li class="dir">step_definitions
<ul>
<li>
<span class="path rb">steps.rb</span>
<div class="content highlight"><pre><span class="no">Given</span><span class="sr"> /^this step works$/</span> <span class="k">do</span><span class="p">;</span> <span class="k">end</span>
</pre></div>
</li>
</ul>
</li>
<li class="dir">support
<ul>
<li>
<span class="path rb">hooks.rb</span>
<div class="content highlight"><pre><span class="no">Before</span><span class="p">(</span><span class="s1">&#39;~@no-boom&#39;</span><span class="p">)</span> <span class="k">do</span>
<span class="k">raise</span> <span class="s1">&#39;boom&#39;</span>
<span class="k">end</span>
</pre></div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="console"><pre>$ cucumber features/f.feature:2
Feature: With and without hooks
Scenario: using hook<span class="comment"> # features/f.feature:2</span>
<span class="failed"> boom (RuntimeError)</span>
<span class="failed"> features/support/hooks.rb:2:in `Before'</span>
<span class="skipped">Given this step works<span class="comment"> # features/step_definitions/steps.rb:1</span></span>
<span class="failed">Failing Scenarios:</span>
<span class="failed">cucumber features/f.feature:2</span><span class="comment"> # Scenario: using hook</span>
1 scenario (<span class="failed">1 failed</span>)
1 step (<span class="undefined">1 skipped</span>)
0m0.001s
</pre></div>
</div>
</body>
</html>