Test Project TestResults

I have a Test Project in VS 2005, and I want the project to always run from a directory which I specify. Want I want is basically what NUnit does: I want to be able to put the test dll where ever I want and run it from that location.

How can I accomplish this?

Also, how can I have VS clean up all those blasted TestResults folders it creates? I do not want them.

Thanks.

[403 byte] By [montgoew] at [2008-2-22]
# 1

This would be a good question for the VS Test forum (http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=19) But...

It looks like you should be able to change the output location from the Project's properties. Under the "Configuration Properties" tree, select the "General" node. You can change the "Output Directory" to place the test DLL in a different location during the build. You can also change the "Working Directory" path under the "Debugging" node.

If you just want to copy and then run the test DLL separately (from any arbitrary location), you can also use mstest.exe to invoke and run it from the command line. For example:

mstest.exe /testcontainer:mytest.dll

There doesn't appear to be an automatic way to delete old results (short of writing your own batch file). This page here shows how to do it manually: http://msdn2.microsoft.com/en-us/library/ms182502(VS.80).aspx

JoshPoley[MSFT] at 2007-10-2 > top of Msdn Tech,Software Engineering Discussion,Software Testing Discussion...