Skip to content

Commit 2c62286

Browse files
committed
Merge pull request #10 from atomic111/master
add json format option
2 parents c046462 + a4e5f60 commit 2c62286

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ bundle exec rake serverspec:default target_host=<name-or-ip-of-target-server>
3939
ASK_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

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)