-
Notifications
You must be signed in to change notification settings - Fork 25
/
Rakefile
37 lines (31 loc) · 873 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
require 'rubygems'
begin
require 'bundler/setup'
rescue LoadError => e
STDERR.puts e.message
STDERR.puts "Run `gem install bundler` to install Bundler."
exit e.status_code
rescue Bundler::BundlerError => e
STDERR.puts e.message
STDERR.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
desc "run rspec unit tests"
RSpec::Core::RakeTask.new
task :default => :spec
namespace :spec do
desc "run spec and integration tests together"
RSpec::Core::RakeTask.new(:all) do |t|
t.pattern = "spec/**/*_{devicespec,spec}.rb"
end
desc "run rspec integration tests (requires idevice connectivity)"
RSpec::Core::RakeTask.new(:device) do |t|
t.pattern = "spec/**/*_devicespec.rb"
end
end
desc "pry console"
task :console do
sh "pry -I lib -r ./lib/idevice.rb"
end