Skip to content

New option to plsql-spec command to indicate when to capture the output #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lib/plsql/spec/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ def init
:type => :boolean,
:default => false,
:banner => "show DBMS_OUTPUT messages"
method_option :capture,
:type => :boolean,
:default => true,
:banner => "hide the output when some exception occur"
method_option :"html",
:type => :string,
:banner => "generate HTML RSpec output to specified file (default is test-results.html)"
Expand Down Expand Up @@ -76,10 +80,10 @@ def run_tests(*files)

if files.empty?
say "Running all specs from spec/", :yellow
puts run("#{speccommand} spec", :verbose => false, :capture => true)
puts run("#{speccommand} spec", :verbose => false, :capture => options[:capture])
else
say "Running specs from #{files.join(', ')}", :yellow
puts run("#{speccommand} #{files.join(' ')}", :verbose => false, :capture => true)
puts run("#{speccommand} #{files.join(' ')}", :verbose => false, :capture => options[:capture])
end

if options[:html]
Expand Down