Issue #18467 has been reported by Daniele Sluijters.
----------------------------------------
Feature #18467: suppress output from puppetlabs_spec_helper
https://projects.puppetlabs.com/issues/18467
Author: Daniele Sluijters
Status: Unreviewed
Priority: Normal
Assignee:
Category: testing
Target version:
Affected Puppet version:
Keywords: spec, rake, rspec, puppetlabs_spec_helper
Branch:
Every time I run `rake spec` when I want to test a module I get this outputted
to my console (of course the filenames vary):
`/usr/local/opt/rbenv/versions/1.9.3-p194/bin/ruby -S rspec
spec/classes/configs_spec.rb spec/classes/fail2ban_spec.rb
spec/classes/services_spec.rb --color`
Now though this can be interesting information in case it's not actually
picking up on specs I find it mostly useless and I'd like to be able to
suppress that output.
The 'problem' lies here:
RSpec::Core::RakeTask.new(:spec_standalone) do |t|
t.rspec_opts = ['--color']
t.pattern = 'spec/{classes,defines,unit,functions,hosts}/**/*_spec.rb'
end
By default rspec has `verbose` set to `true` on `RSpec::Core::RakeTask`, I'd
like to have it go to `false`. Imho this should be configureable somehow but I
haven't found any way to do that from rspec or Rake.
My best guess would be to use `$VERBOSE` as Ruby does but in Ruby when
`$VERBOSE` is not set it defaults to a level of warning but I think that in
this case it's acceptable to set `t.verbose = false`.
Thought?
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.