-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add coverage reporting to CI #793
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
I recently got this partially working for Firestore (not the Travis part)
Unfortunately there's a problem in the interaction between Xcode 9 and slather that's preventing it from finding the binary based on the configuration and I wasn't able to spend more time figuring out what was going wrong: SlatherOrg/slather#347 |
I can successfully collect code coverage locally with the following steps:
|
@Corrob Awesome! How do you process/visualize the data? It's probably worth adding the instructions to the |
Sorry about the delay, had some other issues pop up. Slather can also output HTML files that allow you to dig into the coverage. slather coverage --html --scheme AllUnitTests_iOS --configuration=Debug --workspace Firebase.xcworkspace/ Firebase.xcodeproj/ produces all of these HTML files: https://drive.google.com/open?id=1pIteb1sHho3SeaicbXmSLVcmjRgsxFG0. You can open index.html to start. I'll send a PR with the necessary changes along with putting it in the README. After that, I'll try to hook it into Travis. |
@Corrob @paulb777 Here is the tool I mentioned - xcov. Here is a simple version I used for testing (run from A sample output can be found here |
This is great, Maksym! I really appreciate your fix and input. I think we should go with xcov. I will update my PR. |
@Corrob I am happy to help! |
CocoaPods 1.9.0 adds |
This will get easier after #2022 and we can build the frameworks dynamically since there have been at least historical data collection issues with static frameworks and coverage. In the meantime, initial work could be done for GoogleUtilities. |
See CocoaPods/CocoaPods#10034 (comment) for a start at adding via the CocoaPods test spec. |
Now that we have dynamic frameworks, this should be more straightforward. |
xccov, introduced in WWDC19(video at around 0:50:52), could be another way to get the coverage data. |
Closing since this is now implemented. Please open more specific issues for any outstanding items. |
Investigate a solution like https://github.com/SlatherOrg/slather and report coverage for the travis unit test runs.
The text was updated successfully, but these errors were encountered: