Wanting to reopen issue #166 as it does not seem to be resolved. I am running into issues with the error below running Visual Studio 15.3 (Preview 3) and using MSTest v1.1.18.
[6/29/2017 1:28:35 PM Error] An exception occurred while invoking executor 'executor://mstestadapter/v2': Constructor on type 'Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Execution.UnitTestRunner' not found.
Downgrading to v1.1.14 seems to work for the time being.
Edit
Some more information: this never works in Debug mode.. but when running tests in Release.. it works fine.
I saw, that the problem occurred, when I have a several Unit Test projects in one solution with different versions of package MSTest.TestAdapter.
My solution:
The Problem occure, when are many packages MSTest.TestAdapter in directory VisualStudioTestExplorerExtensions.
@walik92 I finally got it working after basically doing this:
@Izzmo: Sorry you ran into this. This is being tracked by #177. @walik92 summarized it well except you do not need step#3. We are working to get this fixed in VS in the upcoming updates.
Ran in to the same issue. I'm going to try @walik92 suggestion...still kind of frustrating to apply a package update and now your test won't run !!
@sunitjoshi : Apologies again. We are tracking to fix this in an upcoming update.
Apart from the workarounds above, you could also perform the following:
I had the same problem few moments ago.
First I panicked af. But after a quick search found this article and the steps from walik92.
What I did was
I hope this would be useful for you guys.
If you have trouble finding the Temporary files on your machine, please visit my projects and use the RefreshR clean utility, check out the description and feel free to use it.
Best regards!
Most helpful comment
I saw, that the problem occurred, when I have a several Unit Test projects in one solution with different versions of package MSTest.TestAdapter.
My solution:
The Problem occure, when are many packages MSTest.TestAdapter in directory VisualStudioTestExplorerExtensions.