<?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: BDD &#8211; Files/Folders/Namespaces (BDD)</title>
	<atom:link href="http://lostechies.com/colinjack/2008/10/28/context-specification-files-folders-namespaces-bdd/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/colinjack/2008/10/28/context-specification-files-folders-namespaces-bdd/</link>
	<description>Just another LosTechies site</description>
	<lastBuildDate>Tue, 24 Aug 2010 06:44:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: jcteague</title>
		<link>http://lostechies.com/colinjack/2008/10/28/context-specification-files-folders-namespaces-bdd/#comment-13</link>
		<dc:creator>jcteague</dc:creator>
		<pubDate>Mon, 03 Nov 2008 02:53:18 +0000</pubDate>
		<guid isPermaLink="false">/blogs/colinjack/archive/2008/10/28/context-specification-files-folders-namespaces-bdd.aspx#comment-13</guid>
		<description>I tend to use CustomerSpecs.cs as the file name and have multiple classes in each file.  I then use what Ben suggested, R# Find by file name.  This was been the easiest so far.  If I have a ton of test for Customer then I think about breaking the file up into two or three files and keep the classes orgainzed logically within those.</description>
		<content:encoded><![CDATA[<p>I tend to use CustomerSpecs.cs as the file name and have multiple classes in each file.  I then use what Ben suggested, R# Find by file name.  This was been the easiest so far.  If I have a ton of test for Customer then I think about breaking the file up into two or three files and keep the classes orgainzed logically within those.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sevestre</title>
		<link>http://lostechies.com/colinjack/2008/10/28/context-specification-files-folders-namespaces-bdd/#comment-12</link>
		<dc:creator>Michael Sevestre</dc:creator>
		<pubDate>Wed, 29 Oct 2008 19:33:55 +0000</pubDate>
		<guid isPermaLink="false">/blogs/colinjack/archive/2008/10/28/context-specification-files-folders-namespaces-bdd.aspx#comment-12</guid>
		<description>@Ben

You could browse by file instead with R# using CRTL+SHIFT+N which allows you for example to find the OrderSpecs file, which contains all tests for an Order.

</description>
		<content:encoded><![CDATA[<p>@Ben</p>
<p>You could browse by file instead with R# using CRTL+SHIFT+N which allows you for example to find the OrderSpecs file, which contains all tests for an Order.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colinjack</title>
		<link>http://lostechies.com/colinjack/2008/10/28/context-specification-files-folders-namespaces-bdd/#comment-11</link>
		<dc:creator>colinjack</dc:creator>
		<pubDate>Wed, 29 Oct 2008 17:54:00 +0000</pubDate>
		<guid isPermaLink="false">/blogs/colinjack/archive/2008/10/28/context-specification-files-folders-namespaces-bdd.aspx#comment-11</guid>
		<description>@Ben
Yeah the whole search for when_ is a big annoying, I tend to find the SUT then do a find usages and then see all the specs  for it.  If our test classes are attributed with something like [Conerning(typeof(Account))] then we can search on that (and hope that at some point R# or whatever will take advantage of this sort of metadata.

Not great solutions though.</description>
		<content:encoded><![CDATA[<p>@Ben<br />
Yeah the whole search for when_ is a big annoying, I tend to find the SUT then do a find usages and then see all the specs  for it.  If our test classes are attributed with something like [Conerning(typeof(Account))] then we can search on that (and hope that at some point R# or whatever will take advantage of this sort of metadata.</p>
<p>Not great solutions though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Scheirman</title>
		<link>http://lostechies.com/colinjack/2008/10/28/context-specification-files-folders-namespaces-bdd/#comment-10</link>
		<dc:creator>Ben Scheirman</dc:creator>
		<pubDate>Wed, 29 Oct 2008 16:36:11 +0000</pubDate>
		<guid isPermaLink="false">/blogs/colinjack/archive/2008/10/28/context-specification-files-folders-namespaces-bdd.aspx#comment-10</guid>
		<description>I&#039;m curious about this as well, as the specs I&#039;ve written quickly get numerous and hard to navigate.

This is still a problem with my &quot;legacy&quot; tests, even more so actually.

I like the nice view that I get when running my specs in R# or NUnit&#039;s runner, but when browsing around code it&#039;s not nearly as easy.

What if I&#039;m currently writing code for a component, and I need to add a new tests.  R#&#039;s CTRL+N brings up the type dialog and I type &quot;when_&quot; and I get a barrage of unrelated specs.</description>
		<content:encoded><![CDATA[<p>I&#8217;m curious about this as well, as the specs I&#8217;ve written quickly get numerous and hard to navigate.</p>
<p>This is still a problem with my &#8220;legacy&#8221; tests, even more so actually.</p>
<p>I like the nice view that I get when running my specs in R# or NUnit&#8217;s runner, but when browsing around code it&#8217;s not nearly as easy.</p>
<p>What if I&#8217;m currently writing code for a component, and I need to add a new tests.  R#&#8217;s CTRL+N brings up the type dialog and I type &#8220;when_&#8221; and I get a barrage of unrelated specs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Jack</title>
		<link>http://lostechies.com/colinjack/2008/10/28/context-specification-files-folders-namespaces-bdd/#comment-9</link>
		<dc:creator>Colin Jack</dc:creator>
		<pubDate>Wed, 29 Oct 2008 15:07:21 +0000</pubDate>
		<guid isPermaLink="false">/blogs/colinjack/archive/2008/10/28/context-specification-files-folders-namespaces-bdd.aspx#comment-9</guid>
		<description>@Ray
Nice suggestion, will definitely give that a shot.

@Michael
The whole tests with code under test things always been a little radical for me but I can definitely see the value. I&#039;m always behind the times on these sorts of things :)</description>
		<content:encoded><![CDATA[<p>@Ray<br />
Nice suggestion, will definitely give that a shot.</p>
<p>@Michael<br />
The whole tests with code under test things always been a little radical for me but I can definitely see the value. I&#8217;m always behind the times on these sorts of things <img src='http://lostechies.com/colinjack/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sevestre</title>
		<link>http://lostechies.com/colinjack/2008/10/28/context-specification-files-folders-namespaces-bdd/#comment-8</link>
		<dc:creator>Michael Sevestre</dc:creator>
		<pubDate>Wed, 29 Oct 2008 11:56:40 +0000</pubDate>
		<guid isPermaLink="false">/blogs/colinjack/archive/2008/10/28/context-specification-files-folders-namespaces-bdd.aspx#comment-8</guid>
		<description>I&#039;ve also tried different approaches. The one we are using now is sligthly different and at first sight a bit weird, but it made a lot of sens after a short while: We are having each specs file(with one or more classes) live beside the code it is testing (i.e. in the same project!). We then use an Nant skript to deploy the application, that among other things, removes the &quot;*specs&quot; file from the assembly. Works like a charm. A bonus with this approach, is that you have also access to internal methods of your sut.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve also tried different approaches. The one we are using now is sligthly different and at first sight a bit weird, but it made a lot of sens after a short while: We are having each specs file(with one or more classes) live beside the code it is testing (i.e. in the same project!). We then use an Nant skript to deploy the application, that among other things, removes the &#8220;*specs&#8221; file from the assembly. Works like a charm. A bonus with this approach, is that you have also access to internal methods of your sut.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Houston</title>
		<link>http://lostechies.com/colinjack/2008/10/28/context-specification-files-folders-namespaces-bdd/#comment-7</link>
		<dc:creator>Ray Houston</dc:creator>
		<pubDate>Wed, 29 Oct 2008 00:07:46 +0000</pubDate>
		<guid isPermaLink="false">/blogs/colinjack/archive/2008/10/28/context-specification-files-folders-namespaces-bdd.aspx#comment-7</guid>
		<description>I&#039;ve tried all sorts of ways and I&#039;m not trilled about any of them. We&#039;re currently doing #1 but we expand out the namespaces more. We have folder names like UserContacts.when_doing_some_action and then we&#039;ll have classes with names like when_doing_some_action_in_some_context. Then main reason for doing this was to not have files 1000 lines of spec code in there for all the different contexts. Like you, I&#039;ll probably change my mind next week.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve tried all sorts of ways and I&#8217;m not trilled about any of them. We&#8217;re currently doing #1 but we expand out the namespaces more. We have folder names like UserContacts.when_doing_some_action and then we&#8217;ll have classes with names like when_doing_some_action_in_some_context. Then main reason for doing this was to not have files 1000 lines of spec code in there for all the different contexts. Like you, I&#8217;ll probably change my mind next week.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
