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

Summary file not found #80

Open
brenovaladao opened this issue May 26, 2023 · 3 comments
Open

Summary file not found #80

brenovaladao opened this issue May 26, 2023 · 3 comments

Comments

@brenovaladao
Copy link

I'm trying to add danger-xcode_summary following the info in the ReadMe but I'm always getting Errors: - [ ] summary file not found

In my Dangerfile I have xcode_summary.report 'MyApp.xcresult'

Gemfile:

source 'https://rubygems.org'
gem 'cocoapods', '1.12.1'
gem 'fastlane', '2.212.2'
gem 'danger', '9.3.0'
gem 'danger-swiftlint', '0.33.0'
gem 'danger-xcode_summary', '1.2.0'
@douglastaquary
Copy link

Hi,

@brenovaladao

Can you do a test by adjusting the results path like this example? Here the results are generated in this folder.

xcode_results_path = './build/Logs/Test/*.xcresult'
xcode_summary.ignored_files = ['Pods/**', 'Frameworks/**']
xcode_summary.ignores_warnings = true
xcode_summary.report xcode_results_path

Let me know if it was useful! ;)

@brenovaladao
Copy link
Author

Thank you for the reply @douglastaquary I just tried that and got the same error :/

Errors:
- [ ] summary file not found

@douglastaquary
Copy link

douglastaquary commented Jun 4, 2024

Hey, i solved this problem here!

I set the path withresultBundlePath to save the .xcresult with the results of the test execution.

xcodebuild test-without-building -xctestrun "build/Build/Products/yourscheme_iphonesimulator17.5-x86_64.xctestrun" -**resultBundlePath "build/results"** -destination platform="$DEVICE_HOST_PLAT",OS="$DEVICE_HOST_OS",name="$DEVICE_HOST_NAME"

And then in the Dangerfile i add the same path.

xcode_results_path = 'build/results.xcresult' # <--
xcode_summary.report xcode_results_path

I hope it still helps! :)

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