I just read this thread pull-request-branches-to-include-code-coverage and was excited. We have a policy of 100% code coverage on new code. The quality gate on master works as expected. It is red when new code is added.
To my understanding, this should now also be measured for PR’s and short-lived branches. This isn’t working for us at the moment. We do see the expected overall coverage but not the expected coverage on new code, which we require to be 100%. Screenshot below. It is the same for long- and short-lived branches, and for PRs
The PR is decorated in VSTS but not in the way I would expect. According to the JIRA issue it should be formatted like this:
No issues; n% New Code Coverage, m% Est. post-merge Coverage
But what we’re seeing is:
Code Quality check passed; 39.0% Est. post-merge coverage
Any idea what’s going wrong here? The developer console is not displaying any errors.
Edit: as you can see, the coverage % isn’t shown either.