Announce: puppet-retrospec release 0.12.0 - generate modules, facts, functions, types, providers and schemas easily

33 views
Skip to first unread message

Corey Osman

unread,
Jan 26, 2016, 12:00:06 PM1/26/16
to Puppet Users
Happy to announce that release 0.12.0 of puppet-retrospec is now available.   Its taking me a long time to get this ready and this is a huge feature update, but retrospec is now even more useful.  Retrospec can now automatically generate some of the more complex puppet module files like facts, functions (v3, v4), types, providers and something new I call schemas for mapping all your parameters for future validation and auto doc scripts. 


To use, just run the following:

1. gem install puppet-retrospec
2. cd your_module
3. retrospec puppet



Note:  Many modules on the forge do not have tests for functions, types, providers, or facts. So if you find a module without test files, retrospec will generate them for you.


Got a problem with what retrospec generates, fork or send a PR here: https://github.com/nwops/retrospec-templates



Corey Osman

 

Jo Rhett

unread,
Jan 26, 2016, 12:54:13 PM1/26/16
to puppet...@googlegroups.com
Implied but not explicit … Puppet 4 supported now?

--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CA63D3D0-DAE4-45AE-B1FA-68A5135D492B%40nwops.io.
For more options, visit https://groups.google.com/d/optout.

-- 
Jo Rhett
Net Consonance : net philanthropy to improve open source and internet projects.

Corey Osman

unread,
Jan 26, 2016, 1:49:04 PM1/26/16
to Puppet Users
Puppet 4 is "supported" when using --enable-future-parser, retrospec will create everything needed to test puppet4 except for the actual tests blocks for classes and defines.  If you have a bunch of parameters to mock retrospec will generate the let(:params) block.   All the new generators don't care about puppet versions since they are 100% ruby code.

The next version I will be rewriting the retrospec parser to parse puppet 4 and puppet 3 code and generating a much larger set of tests and aiming for 99% coverage.   


Corey
Reply all
Reply to author
Forward
0 new messages