Updating VS 2017 to 15.4.5 stopped discovering MsTest 1.2 tests
See original GitHub issueDescription
Today I upgraded VS 2017 to 15.4.5 and it stopped discovering any tests in any of my projects/solutions.
Actual behavior
[12/4/2017 16:26:36 Informational] PowerShellTestContainerDiscoverer Constructor Entering
[12/4/2017 16:26:38 Error] c:\Temp\VisualStudioTestExplorerExtensions\MSTest.TestAdapter.1.2.0/build/_common/Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll
[12/4/2017 16:26:39 Informational] ------ Load Playlist started ------
[12/4/2017 16:26:39 Informational] ========== Load Playlist finished (0:00:00.0039993) ==========
[12/4/2017 16:26:40 Informational] PowerShellTestContainerDiscoverer:OnTestContainersChanged - FindPs1Files
[12/4/2017 16:26:40 Informational] PowerShellTestContainerDiscoverer:IsTestFile - D:\Projects\UPP.Calc.Workflow\FunctionalTests.runsettings
[12/4/2017 16:26:40 Informational] PowerShellTestContainerDiscoverer:IsTestFile - D:\Projects\UPP.Calc.Workflow\NuGet.config
[12/4/2017 16:26:40 Informational] PowerShellTestContainerDiscoverer:IsTestFile - D:\Projects\UPP.Calc.Workflow\SharedAssemblyInfo.cs
[12/4/2017 16:26:40 Informational] PowerShellTestContainerDiscoverer:IsTestFile - D:\Projects\UPP.Calc.Workflow\UnitTests.runsettings
[12/4/2017 16:26:40 Informational] PowerShellTestContainerDiscoverer:OnTestContainersChanged - FindPs1Files
[12/4/2017 16:26:40 Informational] PowerShellTestContainerDiscoverer:IsTestFile - d:\projects\upp.calc.workflow\webjobs\properties\
[12/4/2017 16:26:40 Informational] PowerShellTestContainerDiscoverer:IsTestFile - d:\projects\upp.calc.workflow\webjobs\properties\assemblyinfo.cs
[12/4/2017 16:26:40 Informational] PowerShellTestContainerDiscoverer:IsTestFile - d:\projects\upp.calc.workflow\sharedassemblyinfo.cs
[12/4/2017 16:26:40 Informational] PowerShellTestContainerDiscoverer:IsTestFile - d:\projects\upp.calc.workflow\webjobs\properties\webjob-publish-settings.json
[12/4/2017 16:26:40 Informational] PowerShellTestContainerDiscoverer:IsTestFile -
[12/4/2017 16:26:41 Informational] PowerShellTestContainerDiscoverer:IsTestFile - d:\projects\upp.calc.workflow\api.functionaltests\controllers\
[12/4/2017 16:26:41 Informational] PowerShellTestContainerDiscoverer:IsTestFile - d:\projects\upp.calc.workflow\api.functionaltests\controllers\pingcontrollertest.cs
[12/4/2017 16:26:41 Informational] PowerShellTestContainerDiscoverer:IsTestFile - d:\projects\upp.calc.workflow\api.functionaltests\app.config
[12/4/2017 16:26:41 Informational] PowerShellTestContainerDiscoverer:IsTestFile - d:\projects\upp.calc.workflow\api.functionaltests\packages.config
[12/4/2017 16:26:41 Informational] PowerShellTestContainerDiscoverer:IsTestFile - d:\projects\upp.calc.workflow\api.functionaltests\testinitializer.cs
[12/4/2017 16:26:41 Informational] PowerShellTestContainerDiscoverer:OnTestContainersChanged - FindPs1Files
[12/4/2017 16:26:41 Informational] ------ Discover test started ------
[12/4/2017 16:26:44 Informational] ========== Discover test finished: 0 found (0:00:02.668585) ==========
Environment
Packages:
<package id="MSTest.TestAdapter" version="1.2.0" targetFramework="net462" />
<package id="MSTest.TestFramework" version="1.2.0" targetFramework="net462" />
IDE:
Microsoft Visual Studio Enterprise 2017
Version 15.4.5
VisualStudio.15.Release/15.4.5+27004.2010
Microsoft .NET Framework
Version 4.7.02556
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:30 (11 by maintainers)
Top Results From Across the Web
Unit tests were not showing up
I had a solution in which there was a unit test project. The test items in that project could not show up in...
Read more >Unit Tests not discovered in Visual Studio 2017
I have been struggling with VS 2017 since I installed it. Now it seems Unit Tests will only run from the command line...
Read more >Visual Studio Test Explorer FAQ
Navigate to Tools > Options > Test and find the Logging section there. UWP test discovery. Why are my tests in UWP projects...
Read more >Update to MSTestV2 - Visual Studio (Windows)
In this article ... You can upgrade your test project by retargeting the MSTest version referenced in your .csproj from the MSTestV1 to...
Read more >Debugging MSTest in Visual Studio 2017.3 (15.3): ' ...
Issue came back with new visual update (Inconclusive: Test not run). In UnitTestSession window I can see an exception: ERROR Transition failed: Transition...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same here with VS 15.6.4. Removed
AppData/Local/Temp/VisualStudioTestExplorerExtensions
folder and worked fine again. The original folderVisualStudioTestExplorerExtensions/MSTest.TestAdapter.1.2.0/bin/_common
was empty, instead I had another folder with expected filesVisualStudioTestExplorerExtensions/1.2.0/bin/_common
.Hope it helps!
[12/4/2017 16:26:38 Error] c:\Temp\VisualStudioTestExplorerExtensions\MSTest.TestAdapter.1.2.0/build/_common/Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll
This seems to be an issue with adapter dll not getting loaded from appropriate location.@abatishchev, @twilly86 : Can you guys try deleting this folder “c:\Temp\VisualStudioTestExplorerExtensions”, restart VS and do discovery again? If this still doesn’t work, can you also try deleting “/packages” folder(containing all nuget packages required for that solution) which is created at solution level.