[2155]Unit Testing Run From Specified Location not being honored.

Anyone else have this issue?  I have configured resharper unit test settings to run from a specified directory (which is my solution directory).  When I run my unit tests and look at properties such as DeploymentDirectory or TestDeploymentDir on the testcontext object (mstest), if I run in resharper those directories are not based on my solution directory (then adding test results etc...) as I expect them to be, they are still based in the unit tests project output folder.

Thanks!

4 comments

Hello Chris,

Could you please attach a small sample solution which would demonstrate this
problem? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Anyone else have this issue?  I have configured resharper unit test
settings to run from a specified directory (which is my solution
directory).  When I run my unit tests and look at properties such as
DeploymentDirectory or TestDeploymentDir on the testcontext object
(mstest), if I run in resharper those directories are not based on my
solution directory (then adding test results etc...) as I expect them
to be, they are still based in the unit tests project output folder.

Thanks!

---
Original message URL:
http://devnet.jetbrains.net/message/5305141#5305141



0

If you look at RSRP-270125


I have put some sample code in there along with a description that I hope will help.

Basically I output using Debug.Writeline the Testcontext properties that give the directories for the tests and they are different depending on the runner used.

Should be able to simply create a solution add a class library with a class and a few methods.
*Right click on a method select create unit test, that should create the unit test project and tests. (Using MSTest)
*Go into Resharper Options Unit Testing
* Change Run From to Specified folder and select the solution folder for the run from location.
*Add Debug Writeline statements to MyClassInitialize method
*Debug one test method using Integrated VSTS Test Runner
*capture output
*Debug same test method using Resharper Test Runner
*capture output.

You should now see that the values for the directories are different and that Resharper is still running from the unit test project output folder not the solution folder as expected.

Thanks,.

Some additional notes:
OS: Windows 7
Visual Studio 2010
Language C#

This issue is also present using Resharper 5.1

I have ran this with shadow copying enable and disable and recieve the same results (Shadow copy does not seem to affect the results of the folders in question).


Ultimately I need to modify some xml files as part of my class initialization routine and I need these test to run the same regardless of using VSTS integrated runner or Resharper Test Runner.

Thanks.



Message was edited by: Chris McNear

0

Please find a sample solution attached.



Attachment(s):
ClassLibrary2.zip
0

You are definitely not the only person having this issue.

We recently had to reorganize where our code was being built to, and
ReSharper test runner stopped working.  We're currently forced to use the
built in VS MSTest runner to do any unit or component testing and debugging.

We're hoping this gets fixed in ReSharper 6.x



"Chris McNear"  wrote in message
news:1520852.125411306983964963.JavaMail.devnet@confluence.jetbrains.net...

Anyone else have this issue?  I have configured resharper unit test settings
to run from a specified directory (which is my solution directory).  When I
run my unit tests and look at properties such as DeploymentDirectory or
TestDeploymentDir on the testcontext object (mstest), if I run in resharper
those directories are not based on my solution directory (then adding test
results etc...) as I expect them to be, they are still based in the unit
tests project output folder.

Thanks!

---
Original message URL: http://devnet.jetbrains.net/message/5305141#5305141

0

Please sign in to leave a comment.