<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ghosted Notes &#187; Unit Testing</title>
	<atom:link href="http://ghostednotes.com/category/unit-testing/feed" rel="self" type="application/rss+xml" />
	<link>http://ghostednotes.com</link>
	<description>The writings of a technology ronin</description>
	<lastBuildDate>Thu, 14 Apr 2011 19:30:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Unit Testing and Subversion &#8211; Where should I put the test classes?</title>
		<link>http://ghostednotes.com/2007/11/19/Unit-Testing-and-Subversion--Where-should-I-put-the-test-classes</link>
		<comments>http://ghostednotes.com/2007/11/19/Unit-Testing-and-Subversion--Where-should-I-put-the-test-classes#comments</comments>
		<pubDate>Mon, 19 Nov 2007 18:11:00 +0000</pubDate>
		<dc:creator>Brian Panulla</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://ghostednotes.com/2007/11/19/Unit-Testing-and-Subversion--Where-should-I-put-the-test-classes</guid>
		<description><![CDATA[I&#8217;m starting a strong push to institute Unit Testing in a relatively new project; I figure it will be easier to really get into the habits in a new project from the start, rather than trying to steer some of our ancient existing projects in that direction right away. But I&#8217;ve hit a snag&#8230; where [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m starting a strong push to institute Unit Testing in a relatively new project; I figure it will be easier to really get into the habits in a new project from the start, rather than trying to steer some of our ancient existing projects in that direction right away. But I&#8217;ve hit a snag&#8230; where should I keep the test classes?
<p>We&#8217;ve been using Subversion to manage our project files since shortly after I started here&#8230; getting us into source control was one of my first imperatives. So our code is laid out nicely in folders:</p>
<p><code><br />
Project A<br />
|____ src<br />
|____ lib<br />
|____ docs<br />
|____ db</p>
<p>Project B<br />
|____ src<br />
|____ lib<br />
|____ docs<br />
|____ db<br />
</code></p>
<p>In the src folder, I have things organized in packages like</p>
<p><code><br />
src/edu.psu.ist.project-a.component-a<br />
src/edu.psu.ist.project-a.component-b<br />
</code></p>
<p>So where do I put the test cases? I could put them in a test package at the root of the project:</p>
<p><code><br />
src/edu.psu.ist.project-a.test.component-a<br />
src/edu.psu.ist.project-a.test.component-b<br />
</code></p>
<p>But what I&#8217;m really leaning toward is mirroring the main folder structure of the package in a test package in the root of the repository, at the same level as the src folder:</p>
<p><code><br />
src/edu.psu.ist.project-a.component-a<br />
src/edu.psu.ist.project-a.component-b<br />
test/testComponent-a<br />
test/testComponent-b<br />
</code></p>
<p>My thinking is that the classes in the test package would not get deployed with my actual project code, so they shouldn&#8217;t be in the real source package tree. But I&#8217;m still not sure.</p>
]]></content:encoded>
			<wfw:commentRss>http://ghostednotes.com/2007/11/19/Unit-Testing-and-Subversion--Where-should-I-put-the-test-classes/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

