Class: Cuporter::FeatureReport
- Inherits:
-
ReportBase
- Object
- ReportBase
- Cuporter::FeatureReport
- Defined in:
- lib/cuporter/report/feature_report.rb
Instance Attribute Summary
Attributes inherited from ReportBase
#doc, #filter, #root_dir, #view
Instance Method Summary collapse
Methods inherited from ReportBase
#build, create, #files, #initialize, #no_leaves?, #number?, #show_files?, #show_tags?, #sort?, #total?
Constructor Details
This class inherits a constructor from Cuporter::ReportBase
Instance Method Details
#report_node ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/cuporter/report/feature_report.rb', line 5 def report_node unless @report @report = Cuporter::Node.new_node(:Report, @doc, :title => title, :view => view) files.each do |file| feature = FeatureParser.node(file, @doc, @filter, root_dir) if feature && feature.has_children? @report.add_child feature end end end @report end |
#title ⇒ Object
18 19 20 |
# File 'lib/cuporter/report/feature_report.rb', line 18 def title @title || "Cucumber Features, List View" end |