forked from natritmeyer/site_prism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
39 lines (32 loc) · 783 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
require 'cucumber/rake/task'
require 'rspec/core/rake_task'
require 'reek/rake/task'
require 'yard'
namespace :cuke do
Cucumber::Rake::Task.new(:all) do |t|
t.cucumber_opts = "--format pretty"
end
Cucumber::Rake::Task.new(:wip) do |t|
t.cucumber_opts = "--format pretty -t @wip"
end
end
namespace :spec do
RSpec::Core::RakeTask.new(:all) do |t|
t.pattern = "spec/**/*_spec.rb"
t.ruby_opts = "-I lib"
end
end
namespace :code do
Reek::Rake::Task.new do |t|
t.config_files = "config.reek"
t.source_files = "**/*.rb"
t.fail_on_error = false
t.reek_opts = "-q"
end
end
namespace :docs do
YARD::Rake::YardocTask.new :generate do |t|
t.files = ['lib/**/*.rb', '-', 'README.md']
end
end
task default: ['spec:all', 'cuke:all']