I'm trying to use the MSBuild NUnit community task to force tests to run on each build, but I now see that when I use ReSharper's test runner and it builds the project I'm running the tests twice. It works but is not really desirable.
Does anyone know of a variable or condition I can check within MSBuild so that I can skip the community task if I know the test runner is going to execute the tests anyway?
Note: I'm using VS2008 and the MSBuild script is integrated with the solution/project files. I want the best of all worlds. CTRL + SHIFT + B, plus command-line, plus CI server.