xcov 1.7.0 reports incorrect coverage numbers
colinhumber opened this issue · 1 comments
colinhumber commented
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
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...