I've been trying to find out how to populate SonarQube with both my Jest Unit Tests and the .net Unit Tests.
I have a local version of SQ 6.7 and all the latest versions of the Javascript and C# Plugins.
When it comes to Jest, I have the sonar-jest-reporter to export a test-report.xml file, and also have the lcov.info file being generated.
SonarQube is able to read the lcov.info and I see a coverage %, but no matter what I set as include/exclude, or tests path, it will not show the tests associated with the source file.
The file structure is all .js and the .test.js are in the same directory with each module.
Any help with pointing me in the correct direction, or others who have encountered and overcome this issue that would be appreciated.
.jsfiles not your.tests.js. Am I misunderstanding what you are trying to do? As far as I know the lcov file doesn't include data about which tests are associated with which source files. It only includes data on which lines/branches are covered by tests. - tehbeardedone