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

Include Integration tests in code coverage #147

Merged
merged 23 commits into from Nov 5, 2021
Merged

Include Integration tests in code coverage #147

merged 23 commits into from Nov 5, 2021

Conversation

lucyzhang929
Copy link
Contributor

@lucyzhang929 lucyzhang929 commented Nov 4, 2021

<DataCollectors>
<DataCollector friendlyName="Code Coverage">
<Configuration>
<SplitCoverage>True</SplitCoverage>
Copy link
Contributor

Choose a reason for hiding this comment

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

what does SplitCoverage mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SplitCoverage is so that we can see the Code Coverage tab in ADO.
More details from this comment here: microsoft/vstest#981 (comment)

@@ -6,7 +6,12 @@ parameters:

steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDK 3.1.x for Build'
displayName: 'Install .NET Core SDK 5.0.x for Build'
Copy link
Contributor

Choose a reason for hiding this comment

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

are we really using this for the build? Or just for running the tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be for tests - the Microsoft.NET.Test.Sdk v17 did not work with .NET Core SDK v3.1

@lucyzhang929 lucyzhang929 merged commit 97d0a10 into main Nov 5, 2021
@lucyzhang929 lucyzhang929 deleted the codecoverage branch November 5, 2021 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add code coverage for Integration Tests
3 participants