<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Given / When / Then granularity</title>
	<atom:link href="http://lizkeogh.com/2009/04/16/given-when-then-granularity/feed/" rel="self" type="application/rss+xml" />
	<link>http://lizkeogh.com/2009/04/16/given-when-then-granularity/</link>
	<description>Software, Training, Coaching, Writing</description>
	<lastBuildDate>Wed, 08 Feb 2012 12:59:05 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: liz</title>
		<link>http://lizkeogh.com/2009/04/16/given-when-then-granularity/comment-page-1/#comment-2330</link>
		<dc:creator>liz</dc:creator>
		<pubDate>Fri, 17 Apr 2009 10:51:36 +0000</pubDate>
		<guid isPermaLink="false">http://lizkeogh.com/?p=405#comment-2330</guid>
		<description>Hi Joseph,

At the moment I do it programatically. My steps are named the same as the annotations, so it reads like English. I also include the outcomes, since if I&#039;m running a Scenario before another Scenario and the first Scenario fails, I want to know as soon as possible.

We&#039;re looking at ways of doing it from text but have no real solutions yet. It can&#039;t be hard though, especially if we&#039;re only using one scenario per file - it&#039;s just regexp and file searching.

We&#039;re not doing what you are - running a Background - because I like to explicitly state Givens, and there&#039;s really no difference between running a scenario to buy a fridge, and setting up the state in which I&#039;ve bought a fridge, except that the first exercises the application, which may be simpler than hacking data to set up the state.</description>
		<content:encoded><![CDATA[<p>Hi Joseph,</p>
<p>At the moment I do it programatically. My steps are named the same as the annotations, so it reads like English. I also include the outcomes, since if I&#8217;m running a Scenario before another Scenario and the first Scenario fails, I want to know as soon as possible.</p>
<p>We&#8217;re looking at ways of doing it from text but have no real solutions yet. It can&#8217;t be hard though, especially if we&#8217;re only using one scenario per file &#8211; it&#8217;s just regexp and file searching.</p>
<p>We&#8217;re not doing what you are &#8211; running a Background &#8211; because I like to explicitly state Givens, and there&#8217;s really no difference between running a scenario to buy a fridge, and setting up the state in which I&#8217;ve bought a fridge, except that the first exercises the application, which may be simpler than hacking data to set up the state.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wilk</title>
		<link>http://lizkeogh.com/2009/04/16/given-when-then-granularity/comment-page-1/#comment-2327</link>
		<dc:creator>Joseph Wilk</dc:creator>
		<pubDate>Fri, 17 Apr 2009 09:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://lizkeogh.com/?p=405#comment-2327</guid>
		<description>&quot;I do frequently use one scenario as the context for other scenarios&quot;

I find this statement very interesting as working on the Rspec Story Runners replacement, Cucumber (http://cukes.info/) we have been battling with ways to achieve this (and if we should even allow it).

Our latest move has been to introduce a special scenario referred to as a Background (which should really only contain Givens), which is implicitly run before any of the other scenarios. So we use the background as context for all the other scenarios within a feature/story.

The other solution we use is high level steps to capture common scenario context (so not really using a scenario as a context for another).

Very curious to hear the different ways you achieve using one scenario as the context for another.</description>
		<content:encoded><![CDATA[<p>&#8220;I do frequently use one scenario as the context for other scenarios&#8221;</p>
<p>I find this statement very interesting as working on the Rspec Story Runners replacement, Cucumber (<a href="http://cukes.info/" rel="nofollow">http://cukes.info/</a>) we have been battling with ways to achieve this (and if we should even allow it).</p>
<p>Our latest move has been to introduce a special scenario referred to as a Background (which should really only contain Givens), which is implicitly run before any of the other scenarios. So we use the background as context for all the other scenarios within a feature/story.</p>
<p>The other solution we use is high level steps to capture common scenario context (so not really using a scenario as a context for another).</p>
<p>Very curious to hear the different ways you achieve using one scenario as the context for another.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

