Sub Modules Generic Test Data XML file Results not showing test Coverage for Source Files - Swift

Hello, in my swift project with sub modules aproach and add modules through podspec files as Development Pods like below

pod 'AppKit', :path => './APP/Components/AppKit', :testspecs => ['AppKitTests'],

I’m using Quick&Nimble for test coverage. I can see my test coverage percentage in Xcode as properly.

My Commands To generate Report:-

bundle exec fastlane run clear_derived_data derived_data_path:'fastlane_builds/Tests'


bundle exec fastlane run scan scheme:'Debug' configuration:'Debug' force_quit_simulator:true reset_simulator:true prelaunch_simulator:true code_coverage:true derived_data_path:'fastlane_builds/Tests' output_directory:'fastlane_builds/test_reports' devices:'mestories-iphone-15-pro-ios-17-4' clean:true build_for_testing:true

bundle exec fastlane run scan scheme:'Debug' configuration:'Debug' force_quit_simulator:false reset_simulator:false prelaunch_simulator:true code_coverage:true derived_data_path:'fastlane_builds/Tests' output_directory:'fastlane_builds/test_reports' devices:'mestories-iphone-15-pro-ios-17-4' clean:false test_without_building:true



bundle exec fastlane run slather scheme:'Debug' configuration:'Debug' proj:'MercedesMeStories.xcodeproj' workspace:'MercedesMeStories.xcworkspace' sonarqube_xml:true jenkins:true build_directory:'fastlane_builds/test_reports' output_directory:'fastlane_builds/test_reports' 

But I cannot see the test coverage percentage in sonarcloud.

sonar scan logs are at attachment as a file. (verbose=true)

Thanks for helping.

Test-Debug-2024.10.04_10-02-28-+0530.xcresult.zip (2.9 MB)

sonarqube-generic-coverage.xml.zip (10.0 KB)
Logs.txt.zip (25.9 KB)

@OlivierK Could you please help here ad i can see your answer on of this similar question Generic Test Data XML file Results not showing - Swift - #3 by OlivierK

@Mustafa_Yazgulu Could you please help here as i can see you have found solution

Hi,

Per the FAQ, please don’t @ people not already involved in the thread. It doesn’t move you up their priority lists; just the opposite.

TBH, I don’t know what slather is, and searching didn’t turn up anything about its --sonarqube-xml option, from your logs. So I can’t comment on that except to say that we support llvm-cov show output for Swift, as well as the generic coverage format.

And on that latter topic, I see that you’ve provided a generic coverage report. Could you also post your full analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann