-
Notifications
You must be signed in to change notification settings - Fork 291
TestFx 2.2.0-preview won't discover or run tests on VS16.8 #748
Copy link
Copy link
Closed
Description
Description
TestFx won't discover or run tests on .Net Framework 4.7 when using Visual Studio 16.8.
Steps to reproduce
- Create a Unit Test Project on
.Net Framework 4.7. - Verify that tests are getting discovered and run successfully.
- Update
MSTest.TestAdapterandMSTest.TestFrameworkto version2.2.0-preview-20201126-03. - Run the tests using the Test Explorer Window.
Expected behavior
Tests are discovered and ran.
Actual behavior
---------- Starting test discovery for requested test run ----------
An exception occurred while test discoverer 'MSTestDiscoverer' was loading tests. Exception: Could not load type 'Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities.TypesToLoadAttribute' from assembly 'Microsoft.VisualStudio.TestPlatform.ObjectModel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
No test is available in C:\...\UnitTestProject9\UnitTestProject9\bin\Debug\UnitTestProject9.dll. Make sure that test discoverer & executors are registered, and platform & framework version settings are appropriate and try again.
========== Test discovery finished: 0 Tests found in 8.1 sec ==========
---------- Starting test run ----------
An exception occurred while invoking executor 'executor://mstestadapter/v2': Could not load type 'Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities.TypesToLoadAttribute' from assembly 'Microsoft.VisualStudio.TestPlatform.ObjectModel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
========== Test run finished: 0 Tests run in 7.4 sec (0 Passed, 0 Failed, 0 Skipped) ==========
Environment
Visual Studio v16.8.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels