[DevExpress Support Team: CLONED FROM T732938: Code Coverage doesn't support MSTests in Visual Studio 2019]
Does CodeRush support code coverage for MSTest v1 under Visual Studio 2019, and if so what are requirements/dependencies to get it running (have tried installing Nuget packages for MsTest.TestFramework and MsTest.TestAdapter but still saw errors and cannot spend much more time investigating right now)?
Both CodeRush and built-in Visual Studio test runners are working fine just for running tests (without coverage). But when I run w/ coverage get the error below (this is w/o additional Nuget packages installed).
Am using:
Visual Studio Professional 2019
CodeRush 19.1.4
Thanks!
-------------------
2019.06.03 18:47:13.9076 Information: executor.Start
2019.06.03 18:47:16.1616 Information: Running tests for Jha.Bsl.Wire.Treasury.Business.Test
2019.06.03 18:47:16.1676 Error: Message: Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
2019.06.03 18:47:16.1686 Error: Type: System.IO.FileNotFoundException
2019.06.03 18:47:16.1826 Error: Source: DevExpress.CodeRush.TestRunner.VSUnitTesting16
2019.06.03 18:47:16.2126 Error: StackTrace: at DevExpress.CodeRush.TestRunner.VSUnitTesting16.Executor.LoadTests(IEnumerable`1 sources, MSDiscoveryContext discoveryContext)
at DevExpress.CodeRush.TestRunner.VSUnitTesting16.Executor.LoadTests(MSDiscoveryContext discoveryContext)
at DevExpress.CodeRush.TestRunner.VSUnitTesting16.Executor.Execute(TestFilterBase filter, String solutionDirectory, String lastRunSettingsFilePath)
2019.06.03 18:47:16.2226 Information: executor exited
Hi Jonathan,
CodeRush does not support code coverage for MSTest v1 when you run tests under Visual Studio 2019.
We're investigating this issue in more detail to find the most appropriate solution and will inform you when get the results.