Summary file not found
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'
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! ;)
Thank you for the reply @douglastaquary I just tried that and got the same error :/
Errors:
- [ ] summary file not found
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! :)