How to setup code coverage for a multi module swift project-IOS

I am using github actions to perfom static code analysis
it is a multi module project and it is not covering a even a single file.
how can i setup code coverage

Hi,

Welcome to the community!

Assuming you’re running your tests and producing a coverage report, you just need to pass that report into analysis. The docs should help.

 
Ann

I need to combine the reports and pass to sonar server.
I am facing the same issues for gradle and swift multi module.
is there any way i can have 1:1 session with you and discuss the issue to get it done since the doc is unclear

Hi,

That’s not available. What’s unclear?

 
Ann

I am in middle of setting up sonar qube for my repo’s
1.Gradle multi module kotlin android project : after generating code coverage for each module.I need to exclude some files from each module and combine report for all modules and then push to sonar server.
do you have any document or sample repo which did the same
2.The above steps have to be done for swift multi module project as well

Hi,

You need to exclude them from… analysis? coverage consideration? something else?

 
Ann

analysis and coverage

Hi,

Setting project exclusions to exclude files from analysis will automatically exclude them from coverage calculations. Exclusions can be set via analysis parameters, but my preference is to do it via the UI.

 
HTH,
Ann

How about jacoco code coverage.
how to combine the individual report and push to sonar server.
is there any plugin do i need to use it here

Hi,

Combining those reports is a little out of scope for us. SO might be able to help tho.

 
Ann