-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
32 lines (26 loc) · 948 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
require 'rake'
require 'rspec/core/rake_task'
task :default => :spec
task :spec => "spec:all"
namespace :spec do
host = ENV['TARGET_HOST'] || '10.0.209.40'
task :all => [:services, :configuration, :users]
desc 'run configuration tests'
RSpec::Core::RakeTask.new(:configuration) do |t|
puts "Running configuration tests on #{host} ..."
t.pattern = "spec/configuration/*_spec.rb"
t.rspec_opts = "--format documentation" # O "--format progress"
end
desc 'run service tests'
RSpec::Core::RakeTask.new(:services) do |t|
puts "Running service tests on #{host} ..."
t.pattern = "spec/services/*_spec.rb"
t.rspec_opts = "--format documentation" # O "--format progress"
end
desc 'run service tests'
RSpec::Core::RakeTask.new(:users) do |t|
puts "Running service tests on #{host} ..."
t.pattern = "spec/users/*_spec.rb"
t.rspec_opts = "--format documentation" # O "--format progress"
end
end