File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -39,5 +39,5 @@ bundle exec rake serverspec:default target_host=<name-or-ip-of-target-server>
3939ASK_LOGIN_PASSWORD=true bundle exec rake serverspec:default target_host=192.168.1.222 user=stack
4040```
4141
42- add ` format=html ` to get a report.html document
42+ add ` format=html|json ` to get a report.html or report.json document
4343
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ namespace :serverspec do
3737 desc "Run serverspec suite #{ suite } "
3838 ServerspecTask . new ( suite . to_sym ) do |t |
3939 t . rspec_opts = '--no-color --format html --out report.html' if ENV [ 'format' ] == 'html'
40+ t . rspec_opts = '--no-color --format json --out report.json' if ENV [ 'format' ] == 'json'
4041 t . target = ENV [ 'TARGET_HOST' ] || ENV [ 'target_host' ]
4142 t . ruby_opts = "-I #{ suite } /serverspec"
4243 t . pattern = "#{ suite } /serverspec/*_spec.rb"
You can’t perform that action at this time.
0 commit comments