-
Notifications
You must be signed in to change notification settings - Fork 179
/
Rakefile
35 lines (27 loc) · 873 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
# frozen_string_literal: true
require 'bundler'
Bundler::GemHelper.install_tasks
require 'cucumber/rake/task'
require 'middleman-core'
Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
exempt_tags = ''
exempt_tags << "--tags 'not @nojava'" if RUBY_PLATFORM == 'java'
t.cucumber_opts = "--color --tags 'not @wip' #{exempt_tags} --strict --format pretty"
end
desc 'Run tests, both RSpec and Cucumber'
task test: %i[spec cucumber]
require 'rspec/core/rake_task'
desc 'Run RSpec'
RSpec::Core::RakeTask.new do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rspec_opts = ['--color', '--format documentation']
end
require 'rubocop/rake_task'
desc 'Run RuboCop to check code consistency'
RuboCop::RakeTask.new(:rubocop)
desc 'Build HTML documentation'
task :doc do
sh 'bundle exec yard'
end
desc 'Run all tests'
task default: :test