We have .Net SQL Project which contains unit test cases for DB Objects written in .Net(MS Tests) using below packages -
Microsoft.VisualStudio.CodeCoverage.Shim,
Microsoft.VisualStudio.QualityTools.UnitTestFramework,
Microsoft.SqlServer.Dac,
Microsoft.Data.Tools.Utilities
Microsoft.Data.Tools.Schema.Sql.UnitTesting
Our Objective is to get code coverage of DB objects covered under the unit test cases.
We have Teamcity tool for deployment in which we have configured the sonar, here trx report get generated but can’t see any coverage on SonarQube.
Test Cases and Code smells are available there.