kishikawakatsumi / xcresulttool

A GitHub Action that generates a human-readable test report from the Xcode result bundle and shows it on GitHub Checks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filter Swift packages from code coverage report

simonmcl opened this issue · comments

By default Xcode code coverage gathers everything, resulting in the generated githubaction report miss quoting my percentage. I'd love the ability to ignore them. Maybe default to only including output of anything that ends in .app, or a flag to pass in a list of target names you want included etc.

I found a work around. You can go to your scheme and under options enable code coverage and select "some targets". If you choose your bundle from that, you can remove the command line argument to enable code coverage and just rely on the scheme