On Wed, May 21, 2008 at 5:18 PM, Shane Isbell <[EMAIL PROTECTED]> wrote:
>> Another question is where to put test code using a structure like this
>> (with main artifact code in the root directory)? What is the
>> mainstream .NET/VS convention for this? E.g. will it work with sources
>> in "." and tests in "src/test" (or whatever)? The .NET team I'm
>> working with tends to create separate projects for tests since, using
>> their old style environment, test code in the same project would
>> become part of the main artifact - which should not be the case when
>> using a tool like NMaven.
>
> There is no need to create separate projects for test classes. Create a
> directory called Test in the main folder and set the pom testSourceDirectory
> to Test. They compile separately.
>
> Shane
>

That's how I thought it should work :-)
Now to convince our .NET developers to adopt a new convention...

Another question, though. In a project (as in organisational, not
code) mixing Java and .NET, should one opt for .NET sources in "." and
tests in "Test" or sources in, say, "src/main/cs" and tests in
"src/test/cs"? Will the latter confuse .NET developers and VS tooling
(we're also using CAB and SCSF) more than the former will confuse Java
people moving between camps?

-- 
- Jan Fredrik Wedén

Reply via email to