To add test sources to a project, you must first specify the directory where your test sources are located:
<build> <sourceDirectory>.</sourceDirectory> <testSourceDirectory>Test</testSourceDirectory> ... </build>
For more information on the directory layout, see Supported Directory Layouts.
Next, add the NUnit version you would like you would like to use to your POM:
<dependency> <groupId>org.apache.maven.dotnet</groupId> <artifactId>NUnit.Framework</artifactId> <version>2.4.6-incubating-SNAPSHOT</version> <type>dotnet:library</type> <scope>test</scope> </dependency>
Note: NUnit is currently only supported building with Microsoft, not Mono.