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:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -7,4 +7,4 @@ cookbooks/
|
|||||||
.cookbooks
|
.cookbooks
|
||||||
.vagrant
|
.vagrant
|
||||||
*.swp
|
*.swp
|
||||||
|
.coverage/
|
||||||
|
|||||||
2
Gemfile
2
Gemfile
@@ -4,7 +4,7 @@ source "https://rubygems.org"
|
|||||||
gem "chef", "~> 11.4.4"
|
gem "chef", "~> 11.4.4"
|
||||||
gem "json", "<= 1.7.7" # chef dependency
|
gem "json", "<= 1.7.7" # chef dependency
|
||||||
gem "berkshelf", "~> 2.0.10"
|
gem "berkshelf", "~> 2.0.10"
|
||||||
gem "chefspec", "~> 3.0.2"
|
gem "chefspec", "~> 3.1.0"
|
||||||
gem "foodcritic", "~> 3.0.3"
|
gem "foodcritic", "~> 3.0.3"
|
||||||
gem "strainer"
|
gem "strainer"
|
||||||
gem "webmock", "~> 1.11.0"
|
gem "webmock", "~> 1.11.0"
|
||||||
|
|||||||
@@ -74,3 +74,5 @@ def neutron_stubs
|
|||||||
stub_command("ip link show eth1").and_return(false)
|
stub_command("ip link show eth1").and_return(false)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
at_exit { ChefSpec::Coverage.report! }
|
||||||
|
|||||||
Reference in New Issue
Block a user