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)