Make testing a little bit easier and require features-directory to make subdirectories in cucumber work
This commit is contained in:
parent
724e249b49
commit
232aca91bc
5 changed files with 6 additions and 2 deletions
|
@ -14,6 +14,7 @@ AllCops:
|
|||
- 'middleman-core/fixtures/**/*'
|
||||
- 'middleman-core/features/**/*'
|
||||
- 'middleman-core/spec/**/*'
|
||||
DisplayCopNames: true
|
||||
LineLength:
|
||||
Enabled: false
|
||||
MethodLength:
|
||||
|
|
2
Gemfile
2
Gemfile
|
@ -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
|
||||
|
|
|
@ -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
1
middleman-core/.rspec
Normal file
|
@ -0,0 +1 @@
|
|||
--color
|
2
middleman-core/cucumber.yml
Normal file
2
middleman-core/cucumber.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
default: --require features --tags ~@wip
|
||||
wip: --require features --tags @wip
|
Loading…
Reference in a new issue