Skip to content

Commit

Permalink
Fixes command checking
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksanderlorenc-lw committed Aug 21, 2024
1 parent 6cfbc9d commit fe2b769
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/xcresult_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@

it 'parse test plan summaries' do
parser = XCResult::Parser.new(path: path)

expect(parser).to receive(:execute_cmd).with(lambda { |command|
is_valid_xcresulttool_command_regex = /^xcrun xcresulttool get( --legacy)? --format json --path .+ --id [a-zA-Z0-9_\~\=]+$/
is_valid_xcresulttool_command_regex.match(command) != nil
}).and_call_original

summaries = parser.action_test_plan_summaries

testable_summary = summaries[0].summaries[0].testable_summaries[0]
Expand Down

0 comments on commit fe2b769

Please sign in to comment.