Skip to content

Commit

Permalink
Update the custom retry strategy to cover all possible results
Browse files Browse the repository at this point in the history
  • Loading branch information
testableapple committed Jun 21, 2024
1 parent cf1b7b7 commit 223a975
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,15 @@ private_lane :retreive_failed_e2e_tests do
junit_report = Nokogiri::XML(File.read(report_path))
failed_tests = []
passed_tests = []

suite_name = junit_report.xpath('//testsuite').first['name'].split('.').first
junit_report.xpath('//testcase').each do |testcase|
suite_name = testcase['classname'].split('.').join('/')
test_name = testcase['name']
class_name = testcase['classname'].split('.').last
test_name = testcase['name'].delete('()')

if testcase.at_xpath('failure')
failed_tests << "#{suite_name}/#{test_name}"
failed_tests << "#{suite_name}/#{class_name}/#{test_name}"
else
passed_tests << "#{suite_name}/#{test_name}"
passed_tests << "#{suite_name}/#{class_name}/#{test_name}"
end
end

Expand Down

0 comments on commit 223a975

Please sign in to comment.