fastlane-community / xcov

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

xcov 1.7.0 reports incorrect coverage numbers #165

Closed colinhumber closed 4 years ago

colinhumber commented 4 years ago

When I run my tests in Xcode 11.2.1, my main app target's coverage numbers are 12.8%. However, when xcov is run the coverage number is 7.4%. I'm not sure if this is configured incorrectly but I'm not sure where the 5% gap is coming from. I don't have any ignored files either.

Here is my test lane that runs the tests and generates the xcov report.

lane :test do |options|
  run_tests(
    derived_data_path: "Build"
  )

  xcov(
    workspace: <workspace name>,
    scheme: <main scheme>,
    derived_data_path: "Build",
    output_directory: "coverage_reports"
  )
end
colinhumber commented 4 years ago

The numbers are matching up now, with Xcode's coverage numbers being lower and matching what xcov is generating. At a bit of a loss, but everything seems to be working now...