mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-29 13:15:34 +08:00
Upgraded to UISpecRunner 0.4.0. Added Rakefile for running all the specs.
This commit is contained in:
35
Rakefile
Normal file
35
Rakefile
Normal file
@@ -0,0 +1,35 @@
|
||||
require 'rubygems'
|
||||
|
||||
begin
|
||||
gem 'uispecrunner'
|
||||
require 'uispecrunner'
|
||||
require 'uispecrunner/options'
|
||||
rescue LoadError => error
|
||||
puts "Unable to load UISpecRunner: #{error}"
|
||||
end
|
||||
|
||||
namespace :uispec do
|
||||
desc "Run all specs"
|
||||
task :all do
|
||||
options = UISpecRunner::Options.from_file('uispec.opts') rescue {}
|
||||
uispec_runner = UISpecRunner.new(options)
|
||||
uispec_runner.run_all!
|
||||
end
|
||||
|
||||
desc "Run all unit specs (those that implement UISpecUnit)"
|
||||
task :units do
|
||||
options = UISpecRunner::Options.from_file('uispec.opts') rescue {}
|
||||
uispec_runner = UISpecRunner.new(options)
|
||||
uispec_runner.run_protocol!('UISpecUnit')
|
||||
end
|
||||
|
||||
desc "Run all integration specs (those that implement UISpecIntegration)"
|
||||
task :integration do
|
||||
options = UISpecRunner::Options.from_file('uispec.opts') rescue {}
|
||||
uispec_runner = UISpecRunner.new(options)
|
||||
uispec_runner.run_protocol!('UISpecIntegration')
|
||||
end
|
||||
end
|
||||
|
||||
desc "Run all specs"
|
||||
task :default => 'uispec:all'
|
||||
Reference in New Issue
Block a user