How to enable Code coverage for pull requests capability for TypeScript and C#

Hao Hu 20 Reputation points Microsoft Vendor

Is it possible to enable code coverage for pull requests capability for both TypeScript and C#?

We have a .NET Core web API program where the frontend is built using TypeScript, and the backend is built using C#, TypeScript and C# code in one project. We use VSTest@2 to generate coverage reports for C# ,while for TypeScript, we use Jest. However, the Code coverage report tab can only display the coverage report of C#, We have tried generating coverage reports in Cobertura format and using ReportGenerator to combine them, which works for the coverage report tab but not in the pull request. We also found this article from Microsoft that mentions Code coverage for pull requests capability is only available for Visual Studio code coverage (.coverage) formats. Is there a way to make this pull request check support both TypeScript and C#?

User's image

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,745 questions
{count} votes