fastlane-community / xcov

Nice code coverage reporting without hassle
MIT License
556 stars 107 forks source link

Request for --hide-ignored-files option #80

Closed getaaron closed 7 years ago

getaaron commented 7 years ago

Currently files ignored via .xcovignore are not really ignored — they appear as 0% coverage.

For example:

image

+-----------------------------------+----+
|          xcov Coverage Report          |
+-----------------------------------+----+
                – snip ✂️ –
| AFNetworking.framework            | 0% |
| OMGHTTPURLRQ.framework            | 0% |
+-----------------------------------+----+

However, I don't want to see these files at all.

Would be nice if there was a --hide-ignored-files option to completely remove this irrelevant stuff from the report.

nakiostudio commented 7 years ago

Hey @getaaron ! Sorry for the delay in my response. These are targets therefore you should be able to ignore them using the option exclude_targets. i.e.

    xcov(
      scheme: "Lyst",
      workspace: "Lyst.xcworkspace",
      output_directory: "./xcov_report",
      exclude_targets: "EasyPeasy.framework,AFNetworking.framework"
    )
nmccann commented 7 years ago

The only_project_targets parameter might also address this particular situation.

kuzdu commented 5 years ago

Because I had to google: only_project_targets is a boolean. For example

    xcov(
      scheme: "your_scheme",
      workspace: "your_workspace",
      output_directory: "./xcov_output",
      only_project_targets:true
    )

Both solutions are working - thank you