On 17 August 2017 at 12:11, Peter Faller <[email protected]> wrote: > Hi David > > Thanks for pointing out 'pdk bundle' - it does provide what I was looking > for. It is however a bit noisy (but that's not a big deal): > > PS> pdk bundle exec -- rspec .\spec\classes\apg_base_spec.rb > . > > Finished in 7.81 seconds (files took 1.85 seconds to load) > 1 example, 0 failures > > C:/Program Files/Puppet Labs/DevelopmentKit/share/ > cache/ruby/2.1.0/gems/puppet-5.0.1-x64-mingw32/lib/puppet/util/windows > /api_types.rb:6: warning: already initialized constant FFI::WIN32_FALSE > C:/Program Files/Puppet Labs/DevelopmentKit/share/ > cache/ruby/2.1.0/gems/facter-2.5.0-x64-mingw32/lib/facter/util/windows > /api_types.rb:5: warning: previous definition of WIN32_FALSE was here > C:/Program Files/Puppet Labs/DevelopmentKit/share/ > cache/ruby/2.1.0/gems/puppet-5.0.1-x64-mingw32/lib/puppet/util/windows > /api_types.rb:9: warning: already initialized constant FFI::ERROR_SUCCESS > C:/Program Files/Puppet Labs/DevelopmentKit/share/ > cache/ruby/2.1.0/gems/facter-2.5.0-x64-mingw32/lib/facter/util/windows > /api_types.rb:8: warning: previous definition of ERROR_SUCCESS was here > C:/Program Files/Puppet Labs/DevelopmentKit/share/ > cache/ruby/2.1.0/gems/puppet-5.0.1-x64-mingw32/lib/puppet/util/windows > /api_types.rb:21: warning: already initialized constant > FFI::Pointer::NULL_HANDLE > C:/Program Files/Puppet Labs/DevelopmentKit/share/ > cache/ruby/2.1.0/gems/facter-2.5.0-x64-mingw32/lib/facter/util/windows > /api_types.rb:20: warning: previous definition of NULL_HANDLE was here > !! spec/fixtures/modules/rimcdm already exists and is not a symlink >
This is now tracked in https://tickets.puppetlabs.com/browse/FACT-1733, but the underlying problem is https://tickets.puppetlabs.com/browse/FACT-1542 , which will require some time to resolve. > The things that I use 'rake' and 'rspec' for are: > > > rspec spec/classes/some_class_spec.rb # to run a single unit test > instead of all tests > Eventually <https://tickets.puppetlabs.com/browse/PDK-429>, `pdk test unit` will properly expose rspec's selector CLI. > rake spec_prep # to update fixtures > > rake spec_standalone # to run tests without updating fixtures > > I'm working on refactoring an over-sized module; that's why being able to > do quick tests is important to me. > > > I'm using the version of rspec-puppet bundled with the PDK - it appears to > be version 2.6.7: > > PS> pdk bundle exec -- rspec --debug > ... > # C:/Program Files/Puppet Labs/DevelopmentKit/share/ > cache/ruby/2.1.0/gems/rspec-puppet-2.6.7/lib/rspec-puppet/monkey_patches.rb:273:in > `require' > ... > That's interesting. In the scientific sense. Is there a way you could share the module, or a reduced example that repro's the issue? Cheers, David -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CALF7fHYmecRp5ZcYAfiAZZXJZZsi3dr9YjdMSFJQJga5GnX0mg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
