Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

danger-xcov plugin keep complaining about the missing xccoverage file. #38

Open
singh88 opened this issue Jan 24, 2022 · 1 comment
Open

Comments

@singh88
Copy link

singh88 commented Jan 24, 2022

I have tried to use the danger-xcov plugin but I am stuck with this error. This issue is not happening in the main xcov tool https://github.com/fastlane-community/xcov but its happening in the danger plugin.

[18:39:31]: Unable to find any .xccoverage file.
[18:39:31]: Make sure you have enabled 'Gather code coverage' setting on your scheme settings.
[18:39:31]: Alternatively you can provide the full path to your .xccoverage file.

I am using Xcode 13 and I have provided the full path of xcresult which worked with just xcov but not with the danger-xcov


 report = xcov.produce_report(workspace: ENV['XCWORKSPACE'],
      scheme: ENV['SCHEME'],
      minimum_coverage_percentage: 90.00,
      xccov_file_direct_path: ENV['DANGER_XCRESULT_DIRECTORY'], 
      markdown_report: true)

xcov.output_report(report)#

where xcresult path is defined in the .env file export DANGER_XCRESULT_DIRECTORY="fastlane/test_output/$SCHEME.xcresult"

Issues

  • First issue that I see is xcov is not able to pick up the scheme even after I have provided the scheme and workspace details in the parameter.
  • Second it's throwing the error I have pointed out above.
@reshadf
Copy link

reshadf commented Feb 25, 2022

I have the same issue now. It appeared to happen after I defined a dedicated derived data path or updated fastlane maybe? However, not sure how to fix this. Seems to be the same problem mentioned here: fastlane/fastlane#19824

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants