-
Notifications
You must be signed in to change notification settings - Fork 62
/
Rakefile
45 lines (34 loc) · 1.3 KB
/
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
38
39
40
41
42
43
44
45
require 'rubygems'
require 'bundler/setup'
require 'rake/testtask'
SKIPPED_INTEGRATION = FileList["spec/integration/youtube/cipher_guesser_spec.rb"]
ALL_INTEGRATION = FileList["spec/integration/*.rb", "spec/integration/*/*.rb"] - SKIPPED_INTEGRATION
ALL_UNIT = FileList["spec/unit/*.rb", "spec/unit/*/*.rb"]
task :default => [:test_all]
Rake::TestTask.new(:test_all) do |t|
t.test_files = ALL_INTEGRATION + ALL_UNIT
end
Rake::TestTask.new(:test_unit) do |t|
t.test_files = ALL_UNIT
end
Rake::TestTask.new(:test_integration) do |t|
t.test_files = ALL_INTEGRATION
end
Rake::TestTask.new(:test_lib) do |t|
t.test_files = FileList["spec/integration/lib_spec.rb"]
end
Rake::TestTask.new(:test_extract) do |t|
t.test_files = FileList["spec/integration/url_extraction_spec.rb"]
end
Rake::TestTask.new(:test_download) do |t|
t.test_files = FileList["spec/integration/download_spec.rb"]
end
Rake::TestTask.new(:test_cipher_loader) do |t|
t.test_files = FileList["spec/integration/youtube/cipher_loader_spec.rb"]
end
Rake::TestTask.new(:test_cipher_guesser) do |t|
t.test_files = FileList["spec/unit/youtube/cipher_guesser_spec.rb"]
end
Rake::TestTask.new(:test_decipherer) do |t|
t.test_files = FileList["spec/unit/youtube/decipherer_spec.rb"]
end