Skip to content

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)

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
PBBlox pushed a commit to PBBlox/azure-functions-sql-extension that referenced this pull request Apr 6, 2025
* use "Code Coverage"

* "Code Coverage" for pr pipeline

* update test sdk and remove coverlet

* wait 30s for func host to start

* increase wait time for queue trigger test

* decrease queue trigger wait time

* temp disable queue test

* use .net core 3.1.0

* change task order

* skip integration tests temporarily

* update to .net 5

* use .net 3.1 for azure functions

* add settings file

* update pr pipeline

* fix runsettings file

* edit runsettings file

* add code coverage package

* add split coverage setting

* reenable queue test

* decrease func host wait time

* add cobertura format + pr comment

* publish code coverage results

* revert back to split coverage
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

4 participants