Title: [1289] trunk/core/distribution/src/site/content: Added page on pending steps.
Revision
1289
Author
mauro
Date
2009-10-04 08:16:11 -0500 (Sun, 04 Oct 2009)

Log Message

Added page on pending steps.

Modified Paths


Added Paths

Diff

Added: trunk/core/distribution/src/site/content/pending-steps.html (0 => 1289)

--- trunk/core/distribution/src/site/content/pending-steps.html	                        (rev 0)
+++ trunk/core/distribution/src/site/content/pending-steps.html	2009-10-04 13:16:11 UTC (rev 1289)
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<title>Pending Steps</title>
+</head>
+
+<body>
+
+<h2>Pending Steps</h2>
+
+<p>By default, JBehave does not fail with it encounters steps that
+do not match any method in the Steps class. These are called <b>pending</b>
+steps. This is because it is designed to allow scenario writers to write
+the textual scenario before the implementation (hence the
+behaviour-driven development). By marking a step as pending, it's
+telling the scenario writer that it's not yet implemented and
+correspondingly it will not execute any steps that following in the same
+scenario.</p>
+
+<p>In some cases, thought, it may be useful to make the scenarios
+fail when steps are pending. This is done by configuring the <a
+    href=""
+in <a href=""
+<pre class="brush: java">
+new Configuration(){
+   public PendingErrorStrategy forPendingSteps() {
+       return PendingErrorStrategy.FAILING;
+   }
+} 
+</pre>
+
+<div class="clear">
+<hr />
+</div>
+
+</body>
+</html>

Modified: trunk/core/distribution/src/site/content/sitemap.xml (1288 => 1289)

--- trunk/core/distribution/src/site/content/sitemap.xml	2009-10-04 12:50:28 UTC (rev 1288)
+++ trunk/core/distribution/src/site/content/sitemap.xml	2009-10-04 13:16:11 UTC (rev 1289)
@@ -22,6 +22,7 @@
     <page>configuring-scenarios.html</page>
     <page>running-scenarios.html</page>
     <page>i18n-scenarios.html</page>
+    <page>pending-steps.html</page>
   </section>
   <section>
     <name>Advanced Topics</name>


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to