example of using new chefspec coverage report
about: https://sethvargo.com/chef-recipe-code-coverage/ output: https://gist.github.com/paulczar/6f9c6ddad71ef4cd6394 Change-Id: I77c32f13c85d26516ded961063412682665de4cb
This commit is contained in:
parent
62e0cd234e
commit
802bb695c4
|
@ -7,4 +7,4 @@ cookbooks/
|
|||
.cookbooks
|
||||
.vagrant
|
||||
*.swp
|
||||
|
||||
.coverage/
|
||||
|
|
2
Gemfile
2
Gemfile
|
@ -4,7 +4,7 @@ source "https://rubygems.org"
|
|||
gem "chef", "~> 11.4.4"
|
||||
gem "json", "<= 1.7.7" # chef dependency
|
||||
gem "berkshelf", "~> 2.0.10"
|
||||
gem "chefspec", "~> 3.0.2"
|
||||
gem "chefspec", "~> 3.1.0"
|
||||
gem "foodcritic", "~> 3.0.3"
|
||||
gem "strainer"
|
||||
gem "webmock", "~> 1.11.0"
|
||||
|
|
|
@ -74,3 +74,5 @@ def neutron_stubs
|
|||
stub_command("ip link show eth1").and_return(false)
|
||||
|
||||
end
|
||||
|
||||
at_exit { ChefSpec::Coverage.report! }
|
||||
|
|
Loading…
Reference in New Issue