Module: QAT::Reporter::Xray::Tests::Helpers

Extended by:
Helpers
Included in:
Helpers, Report
Defined in:
lib/qat/reporter/xray/tasks/tests/helpers.rb

Overview

helper methods for test id manipulation

Instance Method Summary collapse

Instance Method Details

#tag_untagged(report) ⇒ Object

Tags all untagged scenarios present in the test id report

Parameters:



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/qat/reporter/xray/tasks/tests/helpers.rb', line 10

def tag_untagged(report)
  max_test_id = report.max_id
  untagged    = report.untagged

  if untagged.any?
    files = map_untagged(untagged)

    announce_changes(files)

    update_test_ids(files, max_test_id)
  else
    puts "There are no scenarios without test id. Last test id given was '@test##{max_test_id}'."
  end
end