test-kitchen / busser-serverspec

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

Unable to override rspec_opts #35

Closed nicholaskey-okta closed 8 years ago

nicholaskey-okta commented 9 years ago

It seems that there's way to override rspec_opts. By default it is running with "--color" and "--format documentation".

Is there a way to disable color and execute in format json and documentation?

I've tried adding a .rspec file in the test directory but Test Kitchen doesn't pick that up. I've also tried to move the .rspec file into suite/serverspec directory and still the busser is running with --color and --format documentation.

Any ideas how to disable the color and format it in json and documentation?

Thanks!

nicholaskey-okta commented 9 years ago

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

xmik commented 8 years ago

You can do it in test/integration/default/serverspec/spec_helper.rb

RSpec.configure do |c|
  c.color = false
  # and so on
end
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

pkazi commented 4 years ago

Anyone has achieved this ? I want to outout kitchen test results in html and attach to CI build.

pkazi commented 4 years ago

@cl-lab-k Can u redirect me to the way how this can be achieved with this verifier only.?

We really want to have this report generated.