MsTest results files stored in TeamCity's temporary directory.

By default MsTest puts the test results files in it's current working directory. Teamcity is running MsTest from the buildAgent's temp directory, which is cleared frequently. I want MsTest to run from the buildAgent's workingDirectory.

[12:53:12]: [Step 2/27] Results file:  E:\TeamCity\buildAgent\temp\buildTmp\tmpF5DB.tmp.teamcity.trx

I read the this thread http://devnet.jetbrains.net/message/5232885#5232885 but it did not offer a decent solution. If I set my results file manually, subsequent test runs will overwrite existing results.

Thanks.

5 comments
Comment actions Permalink

Do you mean working directory of started mstest process?

0
Comment actions Permalink

If you want to preserve any files after a build, publish them as http://confluence.jetbrains.net/display/TCD65/Build+Artifact.

0
Comment actions Permalink

Yes,

I want mstest's working directory to be the root of my source tree (buildAgent's working directory). At the moment mstest is being run from the temp directory so all my results are automatically deleted. Kinda sucky.

0
Comment actions Permalink

There is a "Result file:" filed in MSTest runner settings. Could you please consider putting there a path to the right place. Is far as I remember, this would make MSTest to have a proper working directory.

0

Please sign in to leave a comment.