Sonar Coverage #10854
Replies: 1 comment
-
Hey @tnf-shivanggupta! Since Sonar cloud is not providing a solution for .svelte files (and possibly Vue etc), a custom work-around would be to create a post-processing solution or a custom coverage reporter (for Istanbul) for Jest/Vitest. A custom coverage reporter discussion occurred within this Github Issue: jestjs/jest#9112 (comment). I created a quick example of what that may look like here. You can also create a post-processing solution based on lcov using javascript or cobertura reports using XSLT. These solutions are not limited to using Istanbul as a code coverage reporter, but may get more complex depending on your repo. Please let me know if you've thought of a better solution! Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have to get the sonar coverage for my sveltekit project but sonar cloud is not considering .svelte files
Beta Was this translation helpful? Give feedback.
All reactions