-
-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #426 from legal90/fix-tests
Update unit tests configuration
- Loading branch information
Showing
6 changed files
with
32 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[local_phases] | ||
unit = "bundle exec rspec test/spec/" | ||
lint = 'cookstyle --display-cop-names --extra-details' | ||
syntax = "foodcritic ." | ||
provision = "echo skipping" | ||
deploy = "echo skipping" | ||
smoke = "echo skipping" | ||
functional = "echo skipping" | ||
cleanup = "echo skipping" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
source 'https://supermarket.chef.io' | ||
|
||
metadata | ||
|
||
group :integration do | ||
cookbook 'selinux' | ||
cookbook 'consul_spec', path: 'test/fixtures/cookbooks/consul_spec' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,14 @@ | ||
# This gemfile provides additional gems for testing and releasing this cookbook | ||
# It is meant to be installed on top of ChefDK which provides the majority | ||
# of the necessary gems for testing this cookbook | ||
# | ||
# Run 'chef exec bundle install' to install these dependencies | ||
|
||
source 'https://rubygems.org' | ||
|
||
gem 'berkshelf' | ||
gem 'poise', '~> 2.2' | ||
gem 'poise-service', '~> 1.0' | ||
gem 'poise-boiler' | ||
gem 'chef-sugar' | ||
|
||
group :lint do | ||
gem 'cookstyle', '~> 1.0' | ||
gem 'rubocop' | ||
gem 'foodcritic' | ||
end | ||
|
||
group :unit, :integration do | ||
gem 'chef-dk', '~> 1.0' | ||
gem 'chefspec' | ||
gem 'rubyzip' | ||
gem 'serverspec' | ||
gem 'rb-readline' | ||
end | ||
|
||
group :development do | ||
gem 'awesome_print' | ||
gem 'stove' | ||
end | ||
|
||
group :doc do | ||
gem 'yard' | ||
end | ||
gem 'poise-service', '~> 1.0' | ||
gem 'rb-readline' | ||
gem 'stove' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
require 'chefspec' | ||
require 'chefspec/policyfile' | ||
require 'chefspec/berkshelf' | ||
require 'poise_boiler/spec_helper' | ||
require_relative '../../libraries/helpers' | ||
|
||
require 'codeclimate-test-reporter' | ||
CodeClimate::TestReporter.start |