Here is my Pipeline
and Here is my Sonar Properties File
Using Jest for calculating the code coverage
Here is my Pipeline
and Here is my Sonar Properties File
Using Jest for calculating the code coverage
Hey there.
I would reccomend starting with the documentation on Javascript/Typescript Code Coverage.
If you’re still stuck, look in your scanner logs for logs about the import of coverage data (after being sure an lcov.info file has been produced by your test step).
For example:
INFO: Sensor JavaScript/TypeScript Coverage [javascript]
INFO: Analysing [/home/vsts/work/1/s/test-results/coverage/lcov.info]
INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=48ms