forked from Katello/runcible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
37 lines (29 loc) · 851 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
#!/usr/bin/env rake
require "bundler/gem_tasks"
require "rake/testtask"
namespace :test do
Rake::TestTask.new :unit do |t|
t.pattern = 'test/unit/test_*.rb'
end
task :integration do
options = {}
options[:mode] = ENV['mode']
options[:test_name] = ENV['test']
options[:auth_type] = ENV['auth_type']
if !['recorded', 'live'].include?(options[:mode])
puts "Invalid test mode"
else
require "test/integration/test_runner"
test_runner = PulpMiniTestRunner.new
if options[:test_name]
puts "Running tests for: #{options[:test_name]}"
puts "Using #{options[:mode]} Pulp."
test_runner.run_tests(options)
else
puts "Running full test suite."
puts "Using #{options[:mode]} data."
test_runner.run_tests(options)
end
end
end
end