Skip to content

Commit

Permalink
Update lib/guard/jasmine/cli.rb
Browse files Browse the repository at this point in the history
running tests in CI - it is very hard to find a single error in all the success :D
  • Loading branch information
robotarmy committed Jul 31, 2012
1 parent 695e4ea commit 7f85bb2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lib/guard/jasmine/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ class CLI < Thor
default_task :spec

desc 'spec', 'Run the Jasmine spec runner'


method_option :focus,
:type => :boolean,
:aliases => '-f',
:default => false,
:desc => 'Specdoc focus to hide successful tests when at least one test fails'

method_option :server,
:type => :string,
:aliases => '-s',
Expand Down Expand Up @@ -93,9 +99,12 @@ def spec(*paths)
runner[:console] = [:always, :never, :failure].include?(options.console.to_sym) ? options.console.to_sym : :failure
runner[:errors] = [:always, :never, :failure].include?(options.errors.to_sym) ? options.errors.to_sym : :failure
runner[:server] = options.server.to_sym

runner[:focus] = options.focus


runner[:notification] = false
runner[:hide_success] = true

runner[:max_error_notify] = 0
runner[:specdoc] = :always

Expand Down

0 comments on commit 7f85bb2

Please sign in to comment.