Skip to content

[Engineering task] Build Quality Checks #4937

@gladjohn

Description

@gladjohn

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions