test-kitchen / busser-serverspec

A Busser runner plugin for the serverspec testing library
Other
54 stars 41 forks source link

configure serverspec rspec options, ruby_opts and pattern #36

Closed neillturner closed 8 years ago

neillturner commented 9 years ago

I would like to be able to configure the rspec_opts, ruby_ops and pattern as in the following code snippet. There are different standards for specifying rspec files. specifically ansible_spec puts then in a different place. It would be good if this was configurable so folks are not forced to put them in test/integration/...

t.rspec_path = rspec_bin if rspec_bin t.rspec_opts = [ '--color', '--format documentation', "--default-path #{base_path}", ] t.ruby_opts = "-I#{base_path}" t.pattern = "#{basepath}/*/__spec.rb"

If i knew how to configure a busser plugin then i could write a PR request

nicholaskey-okta commented 9 years ago

related to https://github.com/test-kitchen/busser-serverspec/issues/35

d-higuchi commented 9 years ago

related to https://github.com/test-kitchen/busser/issues/29

d-higuchi commented 8 years ago

you can use shell verifer instead of busser, it lets serverspec run with any options.

here is my shell verifer and serverspec example: https://github.com/cl-lab-k/apache2-take/tree/shell_verifier

I have no plan to make any drastic changes to busser-serverspec. And I think shell-verifier + serverspec is better choice for testing cookbooks than busser verifier + busser-serverspec. So I am preparing the document for translation frombusser verifier + busser-serverspec to shell-verifier + serverspec. If the document is prepared, I will put link to it in README.

d-higuchi commented 8 years ago

https://github.com/test-kitchen/busser-serverspec#-notice