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

[Engineering task] Build Quality Checks #4937

Open
gladjohn opened this issue Sep 20, 2024 · 0 comments
Open

[Engineering task] Build Quality Checks #4937

gladjohn opened this issue Sep 20, 2024 · 0 comments

Comments

@gladjohn
Copy link
Contributor

Task type

Engineering excellence

Description

The Build Quality Checks task allows you to add quality gates to your build process.

Guidance : https://eng.ms/docs/microsoft-security/identity/identity-productivity/quality/test/unittest/enablecodecoverageinprs

Solution

Steps to follow to enable full code coverage for repositories if diff coverage is not supported

For other repositories, you can use Build Quality Checks extension. Follow the instructions in the link mentioned to enable this in build task & also via branch policy. This extension supports having a baseline build definition & use that as reference to ensure PR coverage doesn't drop the base coverage percentage. Since diff coverage is not supported, we should leverage this to ensure the code coverage gradually goes up.

Note that, if you are running only the tests for code that may be afffected by the change, this won't give you full coverage. It will only give you the coverage for the tests run.

https://marketplace.visualstudio.com/items?itemName=mspremier.BuildQualityChecks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Committed
Development

No branches or pull requests

1 participant