This Question is Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
2 Replies Last post: Jan 2, 2009 9:22 PM by Aaron Wagner  
Aaron Wagner Newbie 2 posts since
Dec 23, 2008
Currently Being Moderated

Dec 24, 2008 12:15 AM

Test runner executed builds (is there a difference?)

I'm trying to run unit tests on every build and I have NUnit from the MSBuild community tasks doing that job.   The problem is that I'm executing the tests twice when I decide I want to use the resharper test runner and it rebuilds my test project.   Is there any way to tell (from MSBuild) that resharper test runner is executing the build.  An enviornment variable, property or condition that I might be able to check??

 

Any help or pointer in the right direction would be great.

 

Environment:

- Windows Vista x64 SP1. UAC disabled

- Resharper 4.1 licenced

- VS 2008 SP1

 

Thanks

Serge Baltic JetBrains 884 posts since
Oct 4, 2004
Currently Being Moderated
Dec 24, 2008 3:42 PM in response to: Aaron Wagner
Re: Test runner executed builds (is there a difference?)

Hello,

 

I'm trying to run unit tests on every build and I have NUnit from the

MSBuild community tasks doing that job.   The problem is that I'm

executing the tests twice when I decide I want to use the resharper

test runner and it rebuilds my test project.   Is there any way to

tell (from MSBuild) that resharper test runner is executing the build.

An enviornment variable,

property or condition that I might be able to check??

 

Is a continuous integration server (such as TeamCity) running the tests for

you on each checkin, or are the tests included within the compilation of

your project?

 

The latter is a strange case. However, if the compilation is running the

tests on its own, then the R# unit test runner is not executing yet, it's

waiting for the build, so probably there's no way to tell that it's going

to run something when the build completes.

 

Serge Baltic

JetBrains, Inc — http://www.jetbrains.com

“Develop with pleasure!”

 

 

 

More Like This

  • Retrieving data ...