'Fastlane scan rewrite .xml report with every retry

I use fastlane scan for UI tests on CI. But fastlane rewrite .xml report for every retry, so I can see in report only tests for last retry (although it write .xcresult report with unique name for every retry). Here is my lane:

lane :ui_tests do |options|
  scan(
    scheme: "MyApp", 
    configuration: "Debug",
    clean: false, 
    derived_data_path: derived_data_path,
    skip_build: true, 
    code_coverage: true, 
    test_without_building: true,
    only_testing: "MyAppUITests",
    output_directory: options[:reports_dir],
    output_types: "junit",
    output_files: options[:report_file],
    device: options[:device],
    xcargs: "OTHER_CODE_SIGN_FLAGS='--keychain=#{options[:keychain_name]}'",
    result_bundle: true,
    number_of_retries: 2
  )

end

I dont know can fastlane scan write report to unique-named .xml file for every retry or not? Of yes, tell me please anyone, where I could set it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source