Initialise testing tools
- add needed infrastructure (Gemfile, Berksfile)
- disabled two non-critical rubocop tests
To make use of these, run:
bundle install
bundle exec strainer test
This commit is contained in:
5
.rubocop.yml
Normal file
5
.rubocop.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
StringLiterals:
|
||||
Enabled: false
|
||||
|
||||
LineLength:
|
||||
Enabled: false
|
||||
9
Gemfile
Normal file
9
Gemfile
Normal file
@@ -0,0 +1,9 @@
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "chef", "~> 11.4.4"
|
||||
gem "json", "<= 1.7.7" # chef 11 dependency
|
||||
gem "berkshelf", "~> 2.0.10"
|
||||
gem "chefspec", "~> 3.0.2"
|
||||
gem "foodcritic", "~> 3.0.3"
|
||||
gem "strainer"
|
||||
gem "rubocop"
|
||||
5
Strainerfile
Normal file
5
Strainerfile
Normal file
@@ -0,0 +1,5 @@
|
||||
# Strainerfile
|
||||
rubocop: bundle exec rubocop $SANDBOX/$COOKBOOK
|
||||
knife test: bundle exec knife cookbook test $COOKBOOK
|
||||
foodcritic: bundle exec foodcritic -f any -t ~FC003 -t ~FC023 $SANDBOX/$COOKBOOK
|
||||
#chefspec: bundle exec rspec $SANDBOX/$COOKBOOK/spec
|
||||
Reference in New Issue
Block a user