yolo 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/yolo/tasks/ios/coverage.rb +2 -15
- metadata +1 -1
@@ -23,7 +23,7 @@ module Yolo
|
|
23
23
|
def build_path
|
24
24
|
files = []
|
25
25
|
Find.find(@xcode.build_path) do |path|
|
26
|
-
files << path if path =~ /.*#{name}-.*\/Build\/Intermediates\/#{name}.build\/.*-
|
26
|
+
files << path if path =~ /.*#{name}-.*\/Build\/Intermediates\/#{name}.build\/.*-iphonesimulator\/#{name}.build\/Objects-normal/
|
27
27
|
end
|
28
28
|
latest = files.sort_by { |filename| File.mtime(filename)}.last # get the latest
|
29
29
|
latest.split("/")[0..-2].join("/") # remove the file and get the dir
|
@@ -36,23 +36,10 @@ module Yolo
|
|
36
36
|
super
|
37
37
|
namespace :yolo do
|
38
38
|
namespace :coverage do
|
39
|
-
desc "Builds the specified scheme(s)."
|
40
|
-
task :build => :clean do
|
41
|
-
xcodebuild :build
|
42
|
-
end
|
43
|
-
|
44
39
|
desc "Calculates the specified scheme(s) test coverage."
|
45
|
-
task :calculate
|
40
|
+
task :calculate do
|
46
41
|
Yolo::Tools::Ios::Coverage.calculate(build_path.gsub(" ", "\\ "), Dir.pwd)
|
47
42
|
end
|
48
|
-
|
49
|
-
desc "Cleans the specified scheme(s)."
|
50
|
-
task :clean do
|
51
|
-
xcodebuild :clean
|
52
|
-
end
|
53
|
-
|
54
|
-
desc "Builds the specified scheme(s) from a clean slate."
|
55
|
-
task :cleanbuild => [:clean, :build]
|
56
43
|
end
|
57
44
|
end
|
58
45
|
end
|