-
Notifications
You must be signed in to change notification settings - Fork 136
/
Rakefile
31 lines (23 loc) · 707 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
#!/usr/bin/env rake
require 'bundler/gem_tasks'
begin
require 'rubocop/rake_task'
require 'rspec/core/rake_task'
desc 'Run Rubocop'
RuboCop::RakeTask.new(:rubocop)
desc 'Run Integration Tests'
RSpec::Core::RakeTask.new(:integration) do |t|
t.pattern = FileList["spec/integration/**/*#{ENV['PATTERN']}*_spec.rb"]
end
desc 'Run Unit Tests'
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = FileList["spec/lib/auth0/**/*#{ENV['PATTERN']}*_spec.rb"]
end
desc 'Run All Suites'
RSpec::Core::RakeTask.new(:all)
desc 'Run unit and integration tests'
task test: [:spec, :integration]
task default: [:rubocop, :test]
rescue LoadError
puts 'Load Error - No RSpec'
end