-
Notifications
You must be signed in to change notification settings - Fork 2.7k
How generate code coverage report for Sonar for Cocoapod library? #8921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi there, thanks for asking. I do not think there is a way to generate code coverage today. Are you using test specs? What is the podspec you are working with? If you are using test specs then we could extend the |
Marking as an enhancement |
Hi D. Thanks for response! Yes, we are using test specs. The podspec structure we are using in our libs are like this:
In the Tests folder we put all test clasess with XCTest and Mockinjay code. We run testcases allways for CI / CD with pod lib lint and pod repo push over Bitrise. But for code quality and CI, the code coverage and tests statistics are very important. If an enhacement is posible, we will very glad! Thanks again! We are in touch Cheers |
Yes this will need to be an enhancement in order to extend |
Great! ¿Do you think this enhancement will be choiced for implementation? ¿When you think this enhancement will be ready D.? Thanks a lot! |
The fastest way to implement it is to attempt to do it! I cannot guarantee personally any specific time this can be released. |
Marking for 1.9.0. |
Report
Hi everyone.
We are currently developing an iOS app, with multiple functional modules as cocoapod libraries. The modules are projects that compile separate from the app, and they are linked as cocoapod dependency in the application. We are developing unit tests with XCTest and we want upload test coverage to a Sonar Swift project. We have a sonar proyect per module and per application.
Here is the problem, because there is not guide about how to generate coverage report for a cocoapod library to Sonar. ¿There is a way to doing this with cocoapod? ¿There is a way to generate coverage reports in the pod lib lint process?
We run the "pod lib lint" in modules, runing unit test perfectly. But not coverage data generated.
Any help is appreciated
Cheers
What did you do?
ℹ Run
pod lib lint
What did you expect to happen?
Generate coverage data like *.xccovarchive files to translate and upload to Sonar Swift project
What happened instead?
No coverage data generated.
CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
The text was updated successfully, but these errors were encountered: