ReSharper + MSTest: deployment of files does not overwrite older versions of the files

I have some files in my solution directory which need to be deployed to the testproject when the tests are executed. (for example <solutiondir>testdata.sql)

The very first time I run my tests, testdata.sql get deployed to <testproject>bin\Debug\TestResults\<somename>\Out and everything runs just fine

Now if I modify testdata.sql, the modified version does not get deployed to <testproject>bin\Debug\TestResults\<somename>\Out

Is this the intended behaviour? Is it a bug? Or do I need to change some settting?

JetBrains ReSharper 6.1 C# Edition
Build 6.1.1000.82 on 2012-02-15T14:14:48
Plugins: none
Visual Studio 10.0.40219.1.


Any advice is appreciated.
Marco
4 comments
Comment actions Permalink

All test data is deployed before test run. MSTest runs tests in new folder every time (it name usually contains current time). You can setup deployment options in VS main menu - Test - Edit Test Settings.

Hope it helps.

0
Comment actions Permalink

Thanks for your reply Victor but it is not the answer I am looking for.
I have configured MSTest correctly, everything works fine when I use MSTest.
But when I use ReSharper to run the tests, it uses the same working directory over and over again (MSTest creates a new working directory for every testrun).
My testdata.sql file in the ReSharper working directory doesn't get updated to the latest version of this file. ReSharper keeps using the original file.
Now I remove the testdata.sql file manually and then the lastest version of the file gets deployed but I want the file to be overwritten every time I use ReSharper to run tests.

0
Comment actions Permalink

Does the directory name, where ReSharper runs tests, contain current time?

0
Comment actions Permalink

No.

Path for MSTest is (Multiple after multiple testruns) :
C:\VS2010\Vrenz\TestResults\Vrenz\Out
C:\VS2010\Vrenz\TestResults\Vrenz[1]\Out
C:\VS2010\Vrenz\TestResults\Vrenz[2]\Out
...

Path for ReSharper is (Always this path, no matter how many testruns):
C:\VS2010\ Vrenz\Com.Vrenz.Test\bin\Debug\TestResults\Vrenz\Out

0

Please sign in to leave a comment.