title: Getting TeamCity to run NUnit tests, with both NCover and TypeMock integrated?
body: <p>Basically I'd like to use the NUnit plugin for TeamCity (the program, not necessarily the specific build step using it) to run my unit tests, with NCover for code coverage, and since my unit tests uses TypeMock 6, I need that too working.</p>
  
  <p>So far I've tried:</p>
  
  <ul>
  <li><p>Just basically pointing the TeamCity NUnit build-step to my dll's, but that fails with the following error message:</p>
  
  <blockquote>
    <p>Typemock Isolator needs to be linked with Coverage Tool to run, to enable do one of the following:</p>
    
    <ol>
    <li>link the Coverage tool through the Typemock Isolator Configuration</li>
    <li>run tests via TMockRunner.exe -link</li>
    <li>use TypeMockStart tasks for MSBuild or NAnt with Link </li>
    </ol>
  </blockquote></li>
  <li><p>Trying to figure out the right command line, I tried this:</p>
  
  <blockquote>
    <p>C:...\Isolator\6.0\TMockRunner.exe "C:\TeamCity...\JetBrains.BuildServer.NUnitLauncher.exe" v4.0 MSIL NUnit-2.5.9 MyAssembly.dll</p>
  </blockquote>
  
  <p>This fails with the exact same error.</p></li>
  <li><p>Setting the environment variables found in the <code>mocking_on.bat</code> file part of TypeMock, this doesn't change the outcome.</p></li>
  </ul>
  
  <p>Note that the above examples doesn't contain any reference to NCover (yet), that's because I've been hacking around on the command line for a couple of hours with the above examples and still haven't gotten basic unit-tests running. NCover is extra options to the nunit-launcher of TeamCity so I hope this is as simple as just enabling that when I get that far.</p>