Class: UICov::Report
Constant Summary collapse
- DEFAULT_FILENAME =
'uicov.report.html'- OPTIONS =
{ '--report-file=FILE' => "File to store report [default is '#{DEFAULT_FILENAME}']", # '--format=FORMAT ' => 'Report format. One of: html, puml [default is "html"]', # '--no-transitions ' => 'Do not report transitions coverage', # '--no-actions ' => 'Do not report actions coverage', # '--no-checks ' => 'Do not report checks coverage', # '--no-elements ' => 'Do not report elements coverage' }
- USAGE_INFO =
‘–format=FORMAT ’ => ‘Report format. One of: html, puml [default is “html”]’, ‘–no-transitions ’ => ‘Do not report transitions coverage’, ‘–no-actions ’ => ‘Do not report actions coverage’, ‘–no-checks ’ => ‘Do not report checks coverage’, ‘–no-elements ’ => ‘Do not report elements coverage’
%Q^[options] file1.uic [file2.uic ... fileN.uic] \n\rWhere options are: #{OPTIONS.inject([]){|a, e| a << "\r\t#{e[0]}\t- #{e[1]}"; a}.join("\n")} ^
Constants inherited from Command
Instance Method Summary collapse
- #do_job(args) ⇒ Object
-
#initialize ⇒ Report
constructor
A new instance of Report.
Methods inherited from Command
Constructor Details
#initialize ⇒ Report
21 22 23 |
# File 'lib/uicov/commands/report.rb', line 21 def initialize @report_file = DEFAULT_FILENAME end |
Instance Method Details
#do_job(args) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/uicov/commands/report.rb', line 25 def do_job(args) usage 'Missed coverage file', USAGE_INFO if args.empty? cov_files = process_args args @cd = merged_file(cov_files) @html = '' @html << add_header @html << create_summary_report @html << create_screens_summary_report @html << create_per_screen_report save @report_file end |