fastlane-community/xcov

Unable to run xcov in fastlane with Xcode 11.3

Jaff opened this issue · 1 comments

Jaff commented

Jenkins is running the job on MacOS 11.5 agent, Xcode 11.3.1, fastlane 2.156.1, xcov 1.7.3. I know the scheme has "Generate Code Coverage" set, and prior to the xcov invocation, I run scan with code_coverage: true. The build produces "Reports/Proton.xcresult" bundle, so how do I get that to xcov? My xcov settings are:

+-----------------------------+---------------------------------------------------------------------------------------------------------------+
|                                                           Summary for xcov 1.7.3                                                            |
+-----------------------------+---------------------------------------------------------------------------------------------------------------+
| workspace                   | Proton.xcworkspace                                                                                            |
| scheme                      | Proton                                                                                                        |
| ignore_file_path            | fastlane/.xcovignore                                                                                          |
| source_directory            | ./iOS                                                                                                         |
| only_project_targets        | true                                                                                                          |
| json_report                 | true                                                                                                          |
| output_directory            | Reports                                                                                                       |
| disable_coveralls           | true                                                                                                          |
| derived_data_path           | ./derivedData                                                                                                 |
| skip_slack                  | true                                                                                                          |
| legacy_support              | xccoverage                                                                                                    |
| html_report                 | true                                                                                                          |
| markdown_report             | false                                                                                                         |
| minimum_coverage_percentage | 0                                                                                                             |
| slack_username              | xcov                                                                                                          |
| slack_message               | Your *xcov* coverage report                                                                                   |
| include_test_targets        | false                                                                                                         |
| ideFoundationPath           | /Applications/Xcode11.3.app/Contents/Developer/../Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation |
+-----------------------------+---------------------------------------------------------------------------------------------------------------+

[12:33:11]: Unable to find any .xccoverage file.
[12:33:11]: Make sure you have enabled 'Gather code coverage' setting on your scheme settings.
[12:33:11]: Alternatively you can provide the full path to your .xccoverage file.
Jaff commented

pilot error