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
|
@ -14,6 +14,7 @@ AllCops:
|
||||||
- 'middleman-core/fixtures/**/*'
|
- 'middleman-core/fixtures/**/*'
|
||||||
- 'middleman-core/features/**/*'
|
- 'middleman-core/features/**/*'
|
||||||
- 'middleman-core/spec/**/*'
|
- 'middleman-core/spec/**/*'
|
||||||
|
DisplayCopNames: true
|
||||||
LineLength:
|
LineLength:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
MethodLength:
|
MethodLength:
|
||||||
|
|
2
Gemfile
2
Gemfile
|
@ -9,7 +9,7 @@ gem 'pry', '~> 0.10', group: :development
|
||||||
gem 'aruba', '~> 0.6'
|
gem 'aruba', '~> 0.6'
|
||||||
gem 'rspec', '~> 3.0'
|
gem 'rspec', '~> 3.0'
|
||||||
gem 'fivemat', '~> 1.3'
|
gem 'fivemat', '~> 1.3'
|
||||||
gem 'cucumber', '~> 1.3'
|
gem 'cucumber', '~> 2.0'
|
||||||
|
|
||||||
# Optional middleman dependencies, included for tests
|
# Optional middleman dependencies, included for tests
|
||||||
gem 'less', '2.3', require: false
|
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 ~@encoding' unless Object.const_defined?(:Encoding)
|
||||||
exempt_tags << '--tags ~@nowindows' if Gem.win_platform?
|
exempt_tags << '--tags ~@nowindows' if Gem.win_platform?
|
||||||
exempt_tags << '--tags ~@travishatesme' if ENV['TRAVIS'] == 'true'
|
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
|
end
|
||||||
|
|
||||||
Cucumber::Rake::Task.new(:cucumber_wip) do |t|
|
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