puppet-rspec debugging

While introducing rspec-puppet into a big and grown puppet codebase at Jimdo we needed to debug stuff and get more verbose output while writing the first tests. As the interwebs aren't very chatty about the topic, here for all the distressed googlers:

Configure debug output and a console logger in your test (or helper or somewhere):

it "should do stuff" do
  Puppet::Util::Log.level = :debug
  should ...

hth :)

Kommentar schreiben

Kommentare: 2
  • #1

    jojo (Donnerstag, 26 September 2013 18:47)


  • #2

    Juan (Dienstag, 28 April 2015 11:18)

    Thanks a lot!