Method: TestCenter::Helper::CorrectingScanHelper#testrun_info

Defined in:
lib/fastlane/plugin/retry_tests/helper/correcting_scan_helper.rb

#testrun_info(batch, try_count, reportnamer, output_directory) ⇒ Object



134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# File 'lib/fastlane/plugin/retry_tests/helper/correcting_scan_helper.rb', line 134

def testrun_info(batch, try_count, reportnamer, output_directory)
  report_filepath = File.join(output_directory, reportnamer.junit_last_reportname)
  config = FastlaneCore::Configuration.create(
    Fastlane::Actions::TestsFromJunitAction.available_options,
    {
      junit: File.absolute_path(report_filepath)
    }
  )
  junit_results = Fastlane::Actions::TestsFromJunitAction.run(config)

  {
    failed: junit_results[:failed],
    passing: junit_results[:passing],
    batch: batch,
    try_count: try_count,
    report_filepath: report_filepath
  }
end