Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Peter Vermeulen
@pver
@jamdagni86 I've update the release on github: https://github.com/OpenCoverUI/OpenCover.UI/releases/tag/v0.8.1
it has the release notes for the new version + it also has the VSIX to be uploaded to vsgallery (direct link: https://github.com/OpenCoverUI/OpenCover.UI/releases/download/v0.8.1/OpenCover.UI.vsix )
Not sure if you have to manually add 'VS 2015' to the supported versions on vsgallery? The plugin now support VS 2012, 2013 and 2015
Raghavendra
@jamdagni86
Guys 10000+ downloads on VSGallery!
Peter Vermeulen
@pver
Nice! :)
Shaun Wilde
@sawilde
:)
Toni Wenzel
@twenzel
👏🏻
Mykremin
@Mykremin
hello
i installed opencover from visual studio 2013 extensions and updates manager, but when i try to do the code coverage is says extensible file not found
what to do?
Mykremin
@Mykremin
*executable not found
Peter Vermeulen
@pver
Hi Mykremin, did you install OpenCover as well? You can get this from https://github.com/OpenCover/opencover/releases
Normally the plugin asks for it when you try to use it
when you use NUnit, you'll have to install that as well (it's not enough to use the NUnit nuget package in your solution)
You can set the paths to your OpenCover and Nunit installation using the Visual Studio Options/Settings dialog and selecting 'OpenCover.UI options'
Ilya Yefimov
@Yefimov

Hello. Excuse me for my closed issues with dumb questions, i just recently opened for me OpenCover.UI and want to get it right.

Can you help me to find instruction how to launch this project on VS2015? I need to get my .vsix-file after the starting this solution by my Visual Studio 2015, but i don't know, what project in this solution i have to set as autorun project.

@Mykremin In the beginning OpenCover will ask you to find executables. This is an OpenCover.Console.exe file. You can get it in %localappdata%\Apps\OpenCover after the installing .msi-file from the link what pver had wrote.
Peter Vermeulen
@pver
Hi Yefimov, to start (and debug) OpenCover.UI in VS2015, you need to change the startup arguments of the project.
If you open the OpenCover.UI.VS2015.sln, you can set OpenCover.UI.VS2013 as startup project
Right click the project file and open the project properties
in tab 'Debug', change C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
(so change the 12 into 14)
that way you should be able to run and debug OpenCover.UI
we really need to remove all the different vS2012, VS2013 and VS2015 solution and project files, because it's hard and confusing to keep them in sync and in the project
@jamdagni86 , @twenzel , @sawilde Is it ok to move to VS2015 for development of the plugin? We could still support VS2012 and VS2013 as targets to install the plugin to, that remains the same
Peter Vermeulen
@pver
@jamdagni86 , @twenzel , @sawilde ping, for the move to use VS2015-only for development, and VS2012-2013-2015 as target for installation :)
Ilya Yefimov
@Yefimov

How this project can know what lines are covered by unit-tests?
I mean, before it highlight the line it has to know what lines are covered by test.

I see that %localappdata%\Apps\OpenCover\OpenCover.Console.exe find this stuff, but i'm interesting in code realisation. If anyone has a time for this dumb question, please, answer.

Toni Wenzel
@twenzel
👍🏻 Check.
Ilya Yefimov
@Yefimov
:+1: Check.
Toni Wenzel
@twenzel
This was meant to @pver
Ilya Yefimov
@Yefimov
Preview of the new message shows that you send emoji, but now i see only "boxes" :worried: . If you want to use emoji -- write :
Peter Vermeulen
@pver
@Yefimov you are right: the plugin uses opencover to test what lines are covered, best to check with @sawilde for the internals (he created OpenCover)
usually the code under test is instrumented with extra code to log what lines are executed
we use these results in the plugin to link it to lines in the VS text editor
Ilya Yefimov
@Yefimov
For coloring them.
Peter Vermeulen
@pver
yes, indeed: the results indicate for each file which lines are executed and we simply link the colors
Ilya Yefimov
@Yefimov
@pver thanks for your answer. I know, that @sawilde created OpenCover (i use it for two years) but a little bit shy for interrupting him with such a question.
Peter Vermeulen
@pver
you're welcome :+1: don't worry about asking him for questions, he's a nice guy! ;-)
Shaun Wilde
@sawilde
@Yefimov don't worry about me, I am useless when it comes to responding
Ilya Yefimov
@Yefimov
About "show covered classes" buton. Where i can find examples of classes and unit-tests what cover it?
Ilya Yefimov
@Yefimov
oh, i get it
Peter Vermeulen
@pver
Hi @/all , just to inform you: I just updated all solution and project files to VS2015, so we no longer have VS2010, VS2013 and VS2015 solution and project files to maintain and keep in sync, this should avoid confusion for new developers :)
Ilya Yefimov
@Yefimov
Wow, sounds great.
david-sackstein
@david-sackstein
What is the significance of the _TOOLSETV71 macro?
syn-DhirendraNaik
@syn-DhirendraNaik
Hi
How can we exclude code from coverage report ?
John PK Erbynn
@pkErbynn
hy @all
John PK Erbynn
@pkErbynn

This may not be the right platform but I'm having difficulty getting CodeCoverage reports when running .NET Core Unit tests with codecov.

I have installed all the required packages and running it runs the test with xUnit nicely. I have also installed OpenCover and got that to work. I am still trying to generate the .xml and I can't figure out where I'm going wrong, or how to fix it!

The command line I'm running boils down to

$ C:/Users/pkErbynn/.nuget/packages/opencover/4.7.922/tools/OpenCover.Console.exe -register:user -target:"C:/Users/pkErbynn/.nuget/packages/xunit.runner.console/2.4.1/tools/net46/xunit.console.x86.exe" -targetargs:"C:/Users/pkErbynn/source/repos/cross-cov/CrossroadsUnitTests/bin/Debug/netcoreapp3.1/CrossroadsUnitTests.dll -noshadow" -output:"./coverage.xml" -filter:"+[Crossroads*]* -[CrossroadsUnitTests*]*"

The command runs, then in the console, I see this...

Executing: .\packages\xunit.runner.console\2.4.1\tools\net46\xunit.console.x86.exe
xUnit.net Console Runner v2.4.1 (32-bit Desktop .NET 4.6, runtime: 4.0.30319.42000)
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Committing...
No results, this could be for a number of reasons. The most common reasons are:
    1) missing PDBs for the assemblies that match the filter please review the
    output file and refer to the Usage guide (Usage.rtf) about filters.
    2) the profiler may not be registered correctly, please refer to the Usage

Can you please suggest where I'm going wrong? I've been beating my head against the wall for weeks on this.

Thanks you in advance.