I am trying to produce code coverage report in sonarcloud for angular-12. Could someone help me how to configure azure pipeline for generating correct code coverage percentage. Currently I am configurating as below,
sonar.exclusions=**/node_modules/**
sonar.tests=$(System.DefaultWorkingDirectory)/projects/project_name/src
sonar.sources=$(System.DefaultWorkingDirectory)/projects/project_name/src
sonar.test.inclusions=$(System.DefaultWorkingDirectory)/projects/project_name/src/**/*.spec.ts
sonar.typescript.lcov.reportPaths=$(System.DefaultWorkingDirectory)/coverage/project_name/lcov.info
I am expecting same code coverage percentage as we get in ng test --code-coverage command.But unfortunately, percentage is showing in sonar cloud seems bit different.