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:
paulczar 2014-01-05 15:07:15 -06:00
parent 62e0cd234e
commit 802bb695c4
3 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View File

@ -7,4 +7,4 @@ cookbooks/
.cookbooks
.vagrant
*.swp
.coverage/

View File

@ -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"

View File

@ -74,3 +74,5 @@ def neutron_stubs
stub_command("ip link show eth1").and_return(false)
end
at_exit { ChefSpec::Coverage.report! }