Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Professional 2015 Test Coverage

I'm trying to configure opencover with Visual Studio 2015 Professional edition.

I use Visual Studio In Build MS Test tool for Unit testing.

I have a few challenges on this ,

1.First I have installed opencover Version 4.6.519

  1. Then report generator Version 2.4.3.0

First challenge that I'm facing is getting the Test Result out put from the visual studio. I'm running on default test configuration.

Though it creates Test Result folder , I do not see any test result file available.

Then I tried to install OpenCover UI extension available here.

Once I installed I'm getting following error ,

enter image description here

An Exception occured , Could Not Fine a part of the path C:\Users\MyUserAccount\Desktop\MyApp\123244-43434-343434....\TestResults

Please refer to out come Window For More Details.

When I check the outcome window this is the out put

Error: None of the provided test containers match the Platform Architecture and .Net Framework settings for the test run. Platform: X86 .Net Framework: Framework45. Go to http://go.microsoft.com/fwlink/?LinkID=330428 for more details on managing these settings.

Could not find a part of the path 'C:\Users\vsuvinith\Desktop\RFS\OpenCover\f83ba963-16d1-450d-915b-6920d402c961\TestResults'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileSystemEnumerableIterator1.CommonInit() at System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) at System.IO.Directory.GetFiles(String path, String searchPattern) at OpenCover.UI.Processors.MSTestExecutor.UpdateTestResultsFile() at OpenCover.UI.Processors.MSTestExecutor.ReadTestResults() at OpenCover.UI.Processors.TestExecutor.Execute() at OpenCover.UI.Commands.ExecuteSelectedTestsCommand.b__1()

Other Things that might help.

  • Build is in X64
  • Running on Windows 7 Enterprise Edition.
  • Running on default configuration , no configuration has done.

can someone help me on getting this resolved.

like image 960
Viduru Avatar asked Nov 09 '22 20:11

Viduru


1 Answers

Viduru. Are you sure, that you set executables correctly? In the beginning OpenCover will ask you to find executables. This is a OpenCover.Console.exe file. You can get it in %localappdata%\Apps\OpenCover after the installing .msi-file from https://github.com/opencover/opencover/releases (opencover.4.6.519.msi)

like image 84
Ilya Yefimov Avatar answered Jan 04 '23 01:01

Ilya Yefimov