MsTest runner seem to ignore deployment file(s)

Hi

I have some tests done for MsTest. A part of these tests relay on various files which are loaded. These files are with the C# projects (under source control), so to be able to find them I use a post build event to write a simple text file which contains the full path to the project folder. This file is written in the ouput path. So it is available in the same location as the tests assembly.
When tests start, this file is read and path to necessary files is contructed. This run perfectly well when ReSharper run nUnit tests. But when I want to run MsTest tests with ReSharper, this behavior fail: ReSharper seem to copy the tests assembly in some temp folder. The behavior stil run normally with MsTest.exe. I thgough indicating the file(s) to copy in the .testrunconfig (deployment section) would be sufficient, but ReSharper seem to totally ignore it.
Is there a solution or another way to do that ?
IMHO this is a ReSharper bug: it should be read the .testrunconfig file to copy all files in the deployement section.

ReSharper v5.1 (licensed) ; Visual Studio 2008 SP1

2 comments

Hello Fernandez,

Try turning off the 'Shadow copy assemblies being tested' option under ReSharper
| Options | Unit Testing. Let me know if this helps. Thank you!

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

Hi

I have some tests done for MsTest. A part of these tests relay on
various files which are loaded. These files are with the C# projects
(under source control), so to be able to find them I use a post build
event to write a simple text file which contains the full path to the
project folder. This file is written in the ouput path. So it is
available in the same location as the tests assembly.

When tests start, this file is read and path to necessary files is
contructed. This run perfectly well when ReSharper run nUnit tests.
But when I want to run MsTest tests with ReSharper, this behavior
fail: ReSharper seem to copy the tests assembly in some temp folder.
The behavior stil run normally with MsTest.exe. I thgough indicating
the file(s) to copy in the .testrunconfig (deployment section) would
be sufficient, but ReSharper seem to totally ignore it.

Is there a solution or another way to do that ?

IMHO this is a ReSharper bug: it should be read the .testrunconfig
file to copy all files in the deployement section.

ReSharper v5.1 ; Visual Studio 2008 SP1

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



0

That's it ! Thank you very much. I totally forgetten this option.

0

Please sign in to leave a comment.