Make testing a little bit easier and require features-directory to make subdirectories in cucumber work

This commit is contained in:
Max Meyer 2015-06-25 22:26:46 +02:00
parent 724e249b49
commit 232aca91bc
5 changed files with 6 additions and 2 deletions

View file

@ -14,6 +14,7 @@ AllCops:
- 'middleman-core/fixtures/**/*'
- 'middleman-core/features/**/*'
- 'middleman-core/spec/**/*'
DisplayCopNames: true
LineLength:
Enabled: false
MethodLength:

View file

@ -9,7 +9,7 @@ gem 'pry', '~> 0.10', group: :development
gem 'aruba', '~> 0.6'
gem 'rspec', '~> 3.0'
gem 'fivemat', '~> 1.3'
gem 'cucumber', '~> 1.3'
gem 'cucumber', '~> 2.0'
# Optional middleman dependencies, included for tests
gem 'less', '2.3', require: false

View file

@ -21,7 +21,7 @@ Cucumber::Rake::Task.new do |t|
exempt_tags << '--tags ~@encoding' unless Object.const_defined?(:Encoding)
exempt_tags << '--tags ~@nowindows' if Gem.win_platform?
exempt_tags << '--tags ~@travishatesme' if ENV['TRAVIS'] == 'true'
t.cucumber_opts = "--color #{exempt_tags.join(' ')} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}"
t.cucumber_opts = "--require features --color #{exempt_tags.join(' ')} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}"
end
Cucumber::Rake::Task.new(:cucumber_wip) do |t|

1
middleman-core/.rspec Normal file
View file

@ -0,0 +1 @@
--color

View file

@ -0,0 +1,2 @@
default: --require features --tags ~@wip
wip: --require features --tags @wip