OpenCoverUI / OpenCover.UI

Visual Studio Integration to OpenCover
MIT License
77 stars 46 forks source link

Visual Studio 2015 Professional Edition Configuration #116

Open viduz opened 8 years ago

viduz commented 8 years ago

Hi Team ,

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

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 ,

opencoveruierror

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.b1() 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.

pver commented 8 years ago

Hi @viduz,

That's a strange exception. Can you successfully run your unit tests with the MS test runner from Visual Studio (so not from the plugin, but through Visual Studio itself)?

viduz commented 8 years ago

Yes.

At the same time I ran Visual Studio MS Build Test using test explorer.

pver commented 8 years ago

Did you run it at the exact same time? That might be the reason: OpenCover.UI calls the same test runner and maybe they interfered with each other. Can you try running them one after the other?