Has anybody run into the following error when trying to run unit tests in Visual Studio Express 2012 For Web?:
MSTestAdapter could not discover the test because the classic mode helper is not available. If a TestSettings file has been selected, unselect it and try again.
I had a solution in Visual Studio 2012 RC which contains a couple of applications, several class libraries, and a couple of unit test projects. When Visual Studio 2012 was released, I changed over to Express For Web. Everything's compiling and running fine, but any time I try to run unit tests I get the above error.
As a test, I unloaded the unit test projects and removed the TestSettings file and added a new unit test project with one test, which is a simple true assert. However, the error persists.
Googling hasn't turned up much of anything for me. A few related posts on various sites, but nothing substantial just yet. (Maybe somebody else has had more luck?) It looks like the test framework is failing before it even tries to invoke MSTest, but what's also curious is that I can't find mstest.exe
on the machine.
Has anybody run into this and solved it? I suppose I could move to NUnit (though their website isn't responding, which doesn't instill a lot of confidence in the project) or something of that nature, though I'd prefer to keep the number of tools down where possible.
I was having the same problem. I have deleted some test settings files and it is working now. Files to be removed:
Local.testsettings
SOLUTIONNAME.vsmdi
TraceAndTestImpact.testsettings
Steps:
Remove all 3 files from the solution
Delete all 3 files from the solution folder
Close the solution in VS12 and reopen it
http://dailywebtips.blogspot.co.uk/2012/09/visual-studio-2012-express-error.html