-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
38 lines (30 loc) · 922 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
Rails.application.load_tasks
begin
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:default)
namespace :cucumber do
desc 'Run cucumber features tagged with @javascript rack_test driver'
task :javascript_disabled do
puts '*' * 50
puts 'Running cucumber features with JS disabled...'
puts '*' * 50
system('WITHOUT_JS=true cucumber --tags @noscript')
end
end
task default: 'cucumber:javascript_disabled'
rescue LoadError
end
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:default)
rescue LoadError
end
begin
require 'scss_lint/rake_task'
SCSSLint::RakeTask.new(:default)
rescue LoadError
end
task default: %i[analyse_javascript]