Skip to content

Commit

Permalink
Add --coverage_summary to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ronen committed Feb 4, 2013
1 parent cfd336b commit 24e8b6c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/guard/jasmine/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,16 @@ class CLI < Thor
:default => false,
:desc => 'Whether to enable the coverage support or not'

method_option :coverage_html,
method_option :coverage_html,
:type => :boolean,
:default => false,
:desc => 'Whether to generate html coverage report. Implies --coverage'

method_option :coverage_summary,
:type => :boolean,
:default => false,
:desc => 'Whether to generate html coverage summary. Implies --coverage'

method_option :statements_threshold,
:type => :numeric,
:default => 0,
Expand Down Expand Up @@ -144,8 +149,9 @@ def spec(*paths)
runner_options[:errors] = [:always, :never, :failure].include?(options.errors.to_sym) ? options.errors.to_sym : :failure
runner_options[:specdoc] = [:always, :never, :failure].include?(options.specdoc.to_sym) ? options.specdoc.to_sym : :always
runner_options[:focus] = options.focus
runner_options[:coverage] = options.coverage || options.coverage_html
runner_options[:coverage] = options.coverage || options.coverage_html || options.coverage_summary
runner_options[:coverage_html] = options.coverage_html
runner_options[:coverage_summary] = options.coverage_summary
runner_options[:statements_threshold] = options.statements_threshold
runner_options[:functions_threshold] = options.functions_threshold
runner_options[:branches_threshold] = options.branches_threshold
Expand Down

0 comments on commit 24e8b6c

Please sign in to comment.