Support for multi-file single file vue components

SonarQube doesn’t show coverage for multi-file single file Vue components. I can confirm that normal single file components work fine. Is there a way to support this or should normal single file components without src imports be used? Here’s a description of what a multi-file single file component looks like: SFC Syntax Specification | Vue.js.

Hey there.

As noted in the topic template, please include the version of SonarQUbe you’re using.

Community Edition Version 9.5 (build 56709)

Hello Priscilla,

Thank you for your feedback, and welcome to the Sonar community!

I am afraid that SonarQube won’t help much here. When it comes to coverage, it will only show what it is provided with. In the scenario your are describing, it will not be able to connect the coverage of .js file imported to a .vue file. Therefore, you will either need to rely on Single File Vue Components or post-process the lcov file generated by your testing framework for Multi-file Vue Components.

Hope this helps,

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.