set up for using nunit

Does nunit have to be installed or can I just reference the .dll somewhere?
How do I point to the nunit assembly in the example below?

<Target Name="runTests">
  <Exec Command="$(teamcity_dotnet_nunitlauncher) v2.0 x86 NUnit-2.5.0 @(TestAssemblies)" />
</Target>

5 comments
Comment actions Permalink

TeamCity bundles several versions of NUnit. You case will work without any installations of NUnit to the build agent machine(s). All you need is to put referenced NUnit.Framework.dll assembly in to the same folder as assemblies to test are.

For MSBuild TeamCity provide <NUnit>/<NUnitTeamCity> tasks. Please refer to the documetation for details at
http://www.jetbrains.net/confluence/display/TCD4/NUnit+for+MSBuild

Thanks!

0
Comment actions Permalink

Will this work with TC 3.1?

When you say the same directory as assemblies to test, do you mean in the source control? Can you elaborate a little more on what you mean this?

0
Comment actions Permalink

Yes. It will work with 3.1 in general. Consider moving to TC4.0 that is to be published this week.

I only meant that in case you have test.dll that contains NUnit tests, you have to put nunit.framework.dll near it.

0
Comment actions Permalink

Oh, yea the source project already has a reference to nunit of course.

Thanks.

TC 4 release candidate will be come this week?

0
Comment actions Permalink

TC 4.0 release will come out this week

0

Please sign in to leave a comment.