Skip to content

Code coverage support #2116

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

Closed
wants to merge 55 commits into from
Closed

Code coverage support #2116

wants to merge 55 commits into from

Conversation

codemzs
Copy link
Member

@codemzs codemzs commented Jan 10, 2019

This is a WIP PR that adds code coverage support. This change contains code that generates code coverage files. In the next iteration I will add code to upload code coverage files to CodeCov once I know builds pass and a way to disable code coverage if needed.

@@ -10,7 +10,7 @@
<Message Importance="High" Text="Running tests ..." />
<MSBuild Targets="VSTest"
Projects="@(Project)"
Properties="VSTestNoBuild=true" />
Properties="VSTestNoBuild=true;Coverage=true;CopyLocalLockFileAssemblies=true" />
Copy link
Contributor

Choose a reason for hiding this comment

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

CopyLocalLockFileAssemblies=true

Is this not a duplicate of the value in Directory.Build.targets set whenever Coverage is true?

@@ -10,7 +10,7 @@
<Message Importance="High" Text="Running tests ..." />
<MSBuild Targets="VSTest"
Projects="@(Project)"
Properties="VSTestNoBuild=true" />
Properties="VSTestNoBuild=true;Coverage=true;" />
Copy link
Member

@eerhardt eerhardt Jan 11, 2019

Choose a reason for hiding this comment

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

There should be a way to shut this off locally, if devs don't want it. #Resolved

Copy link
Member

@ViktorHofer ViktorHofer Jan 13, 2019

Choose a reason for hiding this comment

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

Correct, that option needs to be added to the run tool and removed here. #Resolved


<PropertyGroup Condition="'$(Coverage)' == 'true' and '$(Configuration)'=='Release' and '$(OS)' == 'Windows_NT' and '$(TargetArchitecture)' == 'x64'">
<CollectCoverage>true</CollectCoverage>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
Copy link
Member

Choose a reason for hiding this comment

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

Why is this necessary? Does the coverage tool require it? If so, can you link to information on it?

@codemzs codemzs changed the title WIP Code coverage support Code coverage support Jan 19, 2019
@codecov
Copy link

codecov bot commented Jan 20, 2019

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2116   +/-   ##
=========================================
  Coverage          ?   26.31%           
=========================================
  Files             ?        7           
  Lines             ?     1592           
  Branches          ?        0           
=========================================
  Hits              ?      419           
  Misses            ?     1173           
  Partials          ?        0
Flag Coverage Δ
#Debug 26.31% <ø> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d11630b...93f2955. Read the comment docs.

@codemzs codemzs closed this Jan 20, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Mar 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants