Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate code coverage output with coverlet #1866

Merged
merged 3 commits into from
Sep 17, 2019
Merged

Generate code coverage output with coverlet #1866

merged 3 commits into from
Sep 17, 2019

Conversation

StanleyGoldman
Copy link
Contributor

@StanleyGoldman StanleyGoldman commented Sep 7, 2018

  • Integrate a tool to generate code coverage
  • Integrate codecov.io
  • Added badge to readme

@StanleyGoldman StanleyGoldman force-pushed the code-coverage branch 3 times, most recently from 1b4abff to e5c66aa Compare September 7, 2018 12:48
@StanleyGoldman
Copy link
Contributor Author

So far I'm having issues using coverlet to generate coverage. Opened an issue with them: coverlet-coverage/coverlet#188

@ryangribble
Copy link
Contributor

Hey @StanleyGoldman this is awesome! I've been wanting to get coverage stuff in place. I'm not sure about coverlet, I was planning on following what John Skeet has on https://github.com/nodatime/nodatime (using dotcover I believe)

@StanleyGoldman
Copy link
Contributor Author

Hey @ryangribble. Yea, I've just been on a code coverage spree lately.

I got coverlet and codecov working with https://github.com/octokit/octokit.graphql.net and https://github.com/justaprogrammer/MSBuildLogOctokitChecker
I'm using OpenCover and codecov for https://github.com/github/VisualStudio

I'm just having trouble with coverlet and this project, so hopefully they can help me out.

@StanleyGoldman
Copy link
Contributor Author

Also, wouldn't you have to get a license of dotcover for this?

@ryangribble
Copy link
Contributor

Hmm I had a feeling you could get dotcover for free on open source projects

@StanleyGoldman
Copy link
Contributor Author

That is quite possible..

@shiftkey
Copy link
Member

shiftkey commented Sep 8, 2018

That is quite possible..

Here, read: https://www.jetbrains.com/buy/opensource/

@StanleyGoldman
Copy link
Contributor Author

Okay. Well I don't know how to feel about code coverage tools. I can't find a comparison of dotCover vs other similar tools, but I did manage to get coverlet operational thanks to help from some of their users. We can use another tool in it's place as they all support a common output format.

Now i'm struggling with codecov.io. I have it integrated but I can't seem to get their report uploader to work correctly.

@StanleyGoldman StanleyGoldman force-pushed the code-coverage branch 2 times, most recently from bc84fc7 to 9173225 Compare September 25, 2018 14:55
@StanleyGoldman StanleyGoldman changed the title [WIP] Generate code coverage output with coverlet Generate code coverage output with coverlet Sep 25, 2018
@StanleyGoldman
Copy link
Contributor Author

@ryangribble I logged some issues for remaining work, but I think this is good to merge.

@codecov
Copy link

codecov bot commented Oct 9, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@60e60ca). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #1866   +/-   ##
=========================================
  Coverage          ?   70.84%           
=========================================
  Files             ?      529           
  Lines             ?    13928           
  Branches          ?        0           
=========================================
  Hits              ?     9867           
  Misses            ?     4061           
  Partials          ?        0

@tonerdo
Copy link

tonerdo commented Mar 10, 2019

Just checking if you're encountering any issues with Coverlet that's preventing this from getting merged

@ryangribble
Copy link
Contributor

Sadly I let this one drift and I'm struggling to get back up to speed on it 😳

Apart from the obvious merge conflicts, it seems like some other things could possibly need looking at now due to the passage of time... for example this is using a local implementation that runs coverlet.exe as a cake tool directly, whereas the linked issue indicates this may now be merged into the Cake.Coverlet library.

Im also wanting to understand the implications of changing pdb type to portable, and can spot a few things (like hardcoded paths to coverlet.exe) that should be tidied up (declare coverlet path in a more central place, etc)

@StanleyGoldman
Copy link
Contributor Author

@ryangribble I've also been MIA on this, so it's not just you.
I'll update the PR and dependencies used.

And yea, we'll have to find out some more information regarding PDB types.

Copy link
Contributor Author

@StanleyGoldman StanleyGoldman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed that pdb change. It seems I was working around an issue in coverlet and not realizing it. coverlet-coverage/coverlet#476

@shiftkey
Copy link
Member

@StanleyGoldman great - thanks for following up with that helpful context!

@shiftkey shiftkey removed the request for review from ryangribble September 17, 2019 12:49
@shiftkey shiftkey merged commit f70c402 into master Sep 17, 2019
@shiftkey shiftkey deleted the code-coverage branch September 17, 2019 12:49
@shiftkey
Copy link
Member

release_notes: Added code coverage reporting to CI build

@nickfloyd nickfloyd added Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR and removed category: housekeeping labels Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants