Unit Testing and Subversion - Where should I put the test classes?

I'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've hit a snag... where should I keep the test classes?

We've been using Subversion to manage our project files since shortly after I started here... getting us into source control was one of my first imperatives. So our code is laid out nicely in folders:


Project A
|____ src
|____ lib
|____ docs
|____ db

Project B
|____ src
|____ lib
|____ docs
|____ db

In the src folder, I have things organized in packages like


src/edu.psu.ist.project-a.component-a
src/edu.psu.ist.project-a.component-b

So where do I put the test cases? I could put them in a test package at the root of the project:


src/edu.psu.ist.project-a.test.component-a
src/edu.psu.ist.project-a.test.component-b

But what I'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:


src/edu.psu.ist.project-a.component-a
src/edu.psu.ist.project-a.component-b
test/testComponent-a
test/testComponent-b

My thinking is that the classes in the test package would not get deployed with my actual project code, so they shouldn't be in the real source package tree. But I'm still not sure.

TortoiseSVN Lightning Talk slides

Here are my slides from my Lightning Talk on TortoiseSVN from today's PSU Web Developers' Lunch:

Quick and Dirty Change Tracking with TortoiseSVN

The last slide has several links to additional resources.

If you want the longer version, here's my full 60-minute slide set from the Penn State Web 2006 Conference:

Web File Version Control with Subversion

The slides are in S5 format -- an open slide show system based entirely in Web Standards: XHTML, CSS, and JavaScript.

BlogCFC was created by Raymond Camden. This blog is running version 5.9.1. Contact Blog Owner