Class: Cuporter::TagReport
- Inherits:
-
Object
- Object
- Cuporter::TagReport
- Defined in:
- lib/cuporter/tag_report.rb
Instance Method Summary collapse
- #files ⇒ Object
-
#initialize(input_file_pattern) ⇒ TagReport
constructor
A new instance of TagReport.
- #scenarios_per_tag ⇒ Object
Constructor Details
#initialize(input_file_pattern) ⇒ TagReport
Returns a new instance of TagReport.
5 6 7 |
# File 'lib/cuporter/tag_report.rb', line 5 def initialize(input_file_pattern) @input_file_pattern = input_file_pattern || "features/**/*.feature" end |
Instance Method Details
#files ⇒ Object
9 10 11 |
# File 'lib/cuporter/tag_report.rb', line 9 def files Dir[@input_file_pattern].collect {|f| File. f} end |
#scenarios_per_tag ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/cuporter/tag_report.rb', line 13 def scenarios_per_tag = TagListNode.new("report",[]) files.each do |file| feature = FeatureParser.parse(file) .merge(feature) if feature end .sort_all_descendants! end |