danger-xcode_summary icon indicating copy to clipboard operation
danger-xcode_summary copied to clipboard

Summary file not found

Open brenovaladao opened this issue 2 years ago • 3 comments

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'

brenovaladao avatar May 26 '23 09:05 brenovaladao

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! ;)

douglastaquary avatar Jun 02 '23 11:06 douglastaquary

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

Errors:
- [ ] summary file not found

brenovaladao avatar Jun 09 '23 17:06 brenovaladao

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! :)

douglastaquary avatar Jun 04 '24 15:06 douglastaquary