Module: TestIds::Helpers
- Extended by:
- Helpers
- Defined in:
- lib/qat/tasks/tags/test_ids/helpers.rb
Overview
helper methods for test id manipulation
Instance Method Summary collapse
-
#tag_untagged(report) ⇒ Object
Tags all untagged scenarios present in the test id report.
Instance Method Details
#tag_untagged(report) ⇒ Object
Tags all untagged scenarios present in the test id report
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/qat/tasks/tags/test_ids/helpers.rb', line 7 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 Kernel.puts "There are no scenarios without test id. Last test id given was '@test##{max_test_id}'." end end |