File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ def init
42
42
:type => :boolean ,
43
43
:default => false ,
44
44
:banner => "show DBMS_OUTPUT messages"
45
+ method_option :capture ,
46
+ :type => :boolean ,
47
+ :default => true ,
48
+ :banner => "hide the output when some exception occur"
45
49
method_option :"html" ,
46
50
:type => :string ,
47
51
:banner => "generate HTML RSpec output to specified file (default is test-results.html)"
@@ -76,10 +80,10 @@ def run_tests(*files)
76
80
77
81
if files . empty?
78
82
say "Running all specs from spec/" , :yellow
79
- puts run ( "#{ speccommand } spec" , :verbose => false , :capture => true )
83
+ puts run ( "#{ speccommand } spec" , :verbose => false , :capture => options [ :capture ] )
80
84
else
81
85
say "Running specs from #{ files . join ( ', ' ) } " , :yellow
82
- puts run ( "#{ speccommand } #{ files . join ( ' ' ) } " , :verbose => false , :capture => true )
86
+ puts run ( "#{ speccommand } #{ files . join ( ' ' ) } " , :verbose => false , :capture => options [ :capture ] )
83
87
end
84
88
85
89
if options [ :html ]
You can’t perform that action at this time.
0 commit comments