-
Notifications
You must be signed in to change notification settings - Fork 64
Include Integration tests in code coverage #147
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
Conversation
| <DataCollectors> | ||
| <DataCollector friendlyName="Code Coverage"> | ||
| <Configuration> | ||
| <SplitCoverage>True</SplitCoverage> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does SplitCoverage mean?
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
* 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
Fixes: #141
Successful run in pipeline: https://mssqltools.visualstudio.com/CrossPlatBuildScripts/_build/results?buildId=127471&view=codecoverage-tab