How to generate code coverage for ASP.NET MVC (.Net Core 3.1) based project which has C#, JS and HTML codes?

Hi @ganncamp: We have implemented sonarcloud in our Azure DevOps build pipeline. We have followed this url https://sonarcloud.io/documentation/analysis/scan/sonarscanner-for-msbuild/ to implement build pipeline for Dotnet Core project.

Here is brief info about our code base

  • ASP.NET MVC Core
  • C#
  • AngularJS
  • JavaScript
  • HTML 5
  • CSS 3

Initially there were hurdle but got the help from this community and finally build pipeline has started working. Currently we are experiencing code coverage issues. We can see code coverage for C# but don’t see code coverage for JavaScript.

Can we get any help “How to setup code coverage for JavaScript”?

Much appreciated for any suggestions!