Issue #18467 has been updated by eric sorenson.

Status changed from Unreviewed to Investigating
Assignee set to Daniele Sluijters

Hi Daniele -- this seems reasonable to me, would you consider working up a 
patch and sending a pull request to the project? I've added Branan as a watcher 
in case he has a different opinion or idea about this (I don't consider myself 
authoritative for puppetlabs-spec-helper)

----------------------------------------
Feature #18467: suppress output from puppetlabs_spec_helper
https://projects.puppetlabs.com/issues/18467#change-89071

* 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.


Reply via email to