Issue #18467 has been updated by Daniele Sluijters.
I can work on a patch. If we can agree on using ``$VERBOSE`` it should be as simple as grabbing ``ENV['VERBOSE']`` and using it if it's set, else default to ``false`` (which will probably mean just about everyone gets the new, quieter, behaviour). If we need another way I'd need some suggestions as to how. We could for example have a ``[spec]`` section in ``puppet.conf`` which sets that verbosity but it might require loading additional puppet machinery (not sure how much, if any, is currently loaded). ---------------------------------------- Feature #18467: suppress output from puppetlabs_spec_helper https://projects.puppetlabs.com/issues/18467#change-89082 * Author: Daniele Sluijters * Status: Investigating * Priority: Normal * Assignee: Daniele Sluijters * 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
