slather 1.8.3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.travis.yml +1 -0
- data/CHANGELOG.md +21 -1
- data/README.md +15 -10
- data/README_Images/test_scheme.png +0 -0
- data/Rakefile +6 -0
- data/bin/slather +45 -6
- data/lib/slather/coverage_file.rb +37 -90
- data/lib/slather/coverage_info.rb +84 -0
- data/lib/slather/coverage_service/cobertura_xml_output.rb +10 -6
- data/lib/slather/coverage_service/coveralls.rb +5 -1
- data/lib/slather/coverage_service/gutter_json_output.rb +12 -8
- data/lib/slather/coverage_service/hardcover.rb +5 -1
- data/lib/slather/coverage_service/html_output.rb +32 -19
- data/lib/slather/coverage_service/simple_output.rb +5 -1
- data/lib/slather/{coveralls_coverage_file.rb → coveralls_coverage.rb} +1 -1
- data/lib/slather/profdata_coverage_file.rb +130 -0
- data/lib/slather/project.rb +191 -27
- data/lib/slather/version.rb +1 -1
- data/lib/slather.rb +9 -1
- data/slather.gemspec +4 -4
- data/spec/fixtures/cobertura.xml +56 -79
- data/spec/fixtures/fixtures/Fixtures.swift +15 -0
- data/spec/fixtures/fixtures/other_fixtures.m +23 -0
- data/spec/fixtures/fixtures_html/Branches.m.html +244 -258
- data/spec/fixtures/fixtures_html/BranchesTests.m.html +209 -225
- data/spec/fixtures/fixtures_html/fixtures.m.html +134 -148
- data/spec/fixtures/fixtures_html/fixturesTests.m.html +199 -213
- data/spec/fixtures/fixtures_html/index.html +68 -131
- data/spec/fixtures/fixtures_html/peekaviewTests.m.html +189 -203
- data/spec/fixtures/gutter.json +1 -1
- data/spec/slather/coverage_file_spec.rb +20 -12
- data/spec/slather/coverage_service/cobertura_xml_spec.rb +7 -3
- data/spec/slather/coverage_service/coveralls_spec.rb +61 -20
- data/spec/slather/coverage_service/gutter_json_spec.rb +6 -2
- data/spec/slather/coverage_service/hardcover_spec.rb +33 -3
- data/spec/slather/coverage_service/html_output_spec.rb +48 -7
- data/spec/slather/coverage_service/simple_output_spec.rb +12 -13
- data/spec/slather/profdata_coverage_spec.rb +128 -0
- data/spec/slather/project_spec.rb +222 -49
- data/spec/spec_helper.rb +28 -2
- metadata +58 -46
- data/spec/fixtures/fixtures_html/Empty.m.html +0 -30
- data/spec/fixtures/fixtures_html/fixtures_cpp.cpp.html +0 -30
- data/spec/fixtures/fixtures_html/fixtures_m.m.html +0 -30
- data/spec/fixtures/fixtures_html/fixtures_mm.mm.html +0 -30
- data/spec/fixtures/fixtures_html/peekaview.m.html +0 -190
data/spec/fixtures/cobertura.xml
CHANGED
@@ -1,140 +1,117 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
|
3
|
-
<coverage line-rate="0.
|
3
|
+
<coverage line-rate="0.7333333333333333" branch-rate="1.0000000000000000" lines-covered="55" lines-valid="75" branches-covered="0" branches-valid="0" complexity="0.0" timestamp="1453128250" version="Slather 1.8.2">
|
4
4
|
<sources>
|
5
|
-
<source>/Users/
|
5
|
+
<source>/Users/civetta/Works/Personal/slather/viteinfinite-slather</source>
|
6
6
|
</sources>
|
7
7
|
<packages>
|
8
|
-
<package name="spec.fixtures.fixtures
|
8
|
+
<package name="spec.fixtures.fixtures" line-rate="0.5000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
|
9
|
+
<classes>
|
10
|
+
<class name="fixtures.m" filename="spec/fixtures/fixtures/fixtures.m" line-rate="0.5000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
|
11
|
+
<methods/>
|
12
|
+
<lines>
|
13
|
+
<line number="14" branch="false" hits="1"/>
|
14
|
+
<line number="15" branch="false" hits="1"/>
|
15
|
+
<line number="16" branch="false" hits="1"/>
|
16
|
+
<line number="19" branch="false" hits="0"/>
|
17
|
+
<line number="20" branch="false" hits="0"/>
|
18
|
+
<line number="21" branch="false" hits="0"/>
|
19
|
+
</lines>
|
20
|
+
</class>
|
21
|
+
</classes>
|
22
|
+
</package>
|
23
|
+
<package name="spec.fixtures.fixtures.more_files" line-rate="0.4333333333333333" branch-rate="1.0000000000000000" complexity="0.0">
|
9
24
|
<classes>
|
10
|
-
<class name="Branches" filename="spec/fixtures/fixtures/more_files/Branches.m" line-rate="0.
|
25
|
+
<class name="Branches.m" filename="spec/fixtures/fixtures/more_files/Branches.m" line-rate="0.4333333333333333" branch-rate="1.0000000000000000" complexity="0.0">
|
11
26
|
<methods/>
|
12
27
|
<lines>
|
13
|
-
<line number="
|
14
|
-
<line number="15" branch="
|
15
|
-
<conditions>
|
16
|
-
<condition number="0" type="jump" coverage="100%"/>
|
17
|
-
</conditions>
|
18
|
-
</line>
|
28
|
+
<line number="14" branch="false" hits="2"/>
|
29
|
+
<line number="15" branch="false" hits="2"/>
|
19
30
|
<line number="16" branch="false" hits="1"/>
|
20
|
-
<line number="
|
21
|
-
|
22
|
-
<condition number="0" type="jump" coverage="50%"/>
|
23
|
-
</conditions>
|
24
|
-
</line>
|
31
|
+
<line number="17" branch="false" hits="1"/>
|
32
|
+
<line number="18" branch="false" hits="1"/>
|
25
33
|
<line number="19" branch="false" hits="0"/>
|
26
34
|
<line number="20" branch="false" hits="0"/>
|
27
35
|
<line number="21" branch="false" hits="1"/>
|
28
36
|
<line number="22" branch="false" hits="1"/>
|
37
|
+
<line number="23" branch="false" hits="1"/>
|
38
|
+
<line number="24" branch="false" hits="2"/>
|
29
39
|
<line number="25" branch="false" hits="2"/>
|
30
|
-
<line number="26" branch="
|
31
|
-
<conditions>
|
32
|
-
<condition number="0" type="jump" coverage="50%"/>
|
33
|
-
</conditions>
|
34
|
-
</line>
|
40
|
+
<line number="26" branch="false" hits="2"/>
|
35
41
|
<line number="27" branch="false" hits="2"/>
|
36
|
-
<line number="
|
37
|
-
|
38
|
-
|
39
|
-
</conditions>
|
40
|
-
</line>
|
42
|
+
<line number="28" branch="false" hits="2"/>
|
43
|
+
<line number="29" branch="false" hits="0"/>
|
44
|
+
<line number="30" branch="false" hits="0"/>
|
41
45
|
<line number="31" branch="false" hits="0"/>
|
42
46
|
<line number="32" branch="false" hits="0"/>
|
47
|
+
<line number="33" branch="false" hits="0"/>
|
48
|
+
<line number="34" branch="false" hits="0"/>
|
43
49
|
<line number="35" branch="false" hits="0"/>
|
44
50
|
<line number="36" branch="false" hits="0"/>
|
51
|
+
<line number="37" branch="false" hits="0"/>
|
45
52
|
<line number="38" branch="false" hits="0"/>
|
46
53
|
<line number="39" branch="false" hits="0"/>
|
54
|
+
<line number="40" branch="false" hits="0"/>
|
47
55
|
<line number="41" branch="false" hits="0"/>
|
48
|
-
<line number="
|
49
|
-
|
50
|
-
</class>
|
51
|
-
<class name="Empty" filename="spec/fixtures/fixtures/more_files/Empty.m" line-rate="1.0000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
|
52
|
-
<methods/>
|
53
|
-
<lines/>
|
54
|
-
</class>
|
55
|
-
<class name="peekaview" filename="spec/fixtures/fixtures/more_files/peekaview.m" line-rate="0.0000000000000000" branch-rate="0.0000000000000000" complexity="0.0">
|
56
|
-
<methods/>
|
57
|
-
<lines>
|
58
|
-
<line number="13" branch="false" hits="0"/>
|
59
|
-
<line number="15" branch="false" hits="0"/>
|
60
|
-
<line number="16" branch="true" hits="0" condition-coverage="0% (0/2)">
|
61
|
-
<conditions>
|
62
|
-
<condition number="0" type="jump" coverage="0%"/>
|
63
|
-
</conditions>
|
64
|
-
</line>
|
65
|
-
<line number="18" branch="false" hits="0"/>
|
66
|
-
<line number="19" branch="false" hits="0"/>
|
67
|
-
<line number="20" branch="false" hits="0"/>
|
56
|
+
<line number="42" branch="false" hits="0"/>
|
57
|
+
<line number="43" branch="false" hits="0"/>
|
68
58
|
</lines>
|
69
59
|
</class>
|
70
60
|
</classes>
|
71
61
|
</package>
|
72
|
-
<package name="spec.fixtures.
|
62
|
+
<package name="spec.fixtures.fixturesTests" line-rate="1.0000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
|
73
63
|
<classes>
|
74
|
-
<class name="
|
75
|
-
<methods/>
|
76
|
-
<lines>
|
77
|
-
<line number="15" branch="false" hits="1"/>
|
78
|
-
<line number="16" branch="false" hits="1"/>
|
79
|
-
<line number="20" branch="false" hits="0"/>
|
80
|
-
<line number="21" branch="false" hits="0"/>
|
81
|
-
</lines>
|
82
|
-
</class>
|
83
|
-
<class name="fixtures_cpp.cpp" filename="spec/fixtures/fixtures/fixtures_cpp.cpp" line-rate="1.0000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
|
84
|
-
<methods/>
|
85
|
-
<lines/>
|
86
|
-
</class>
|
87
|
-
<class name="fixtures_m" filename="spec/fixtures/fixtures/fixtures_m.m" line-rate="1.0000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
|
88
|
-
<methods/>
|
89
|
-
<lines/>
|
90
|
-
</class>
|
91
|
-
<class name="fixtures_mm.mm" filename="spec/fixtures/fixtures/fixtures_mm.mm" line-rate="1.0000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
|
92
|
-
<methods/>
|
93
|
-
<lines/>
|
94
|
-
</class>
|
95
|
-
</classes>
|
96
|
-
</package>
|
97
|
-
<package name="spec.fixtures.fixturesTests" line-rate="1.0000000000000000" branch-rate="0.0333333333333333" complexity="0.0">
|
98
|
-
<classes>
|
99
|
-
<class name="BranchesTests" filename="spec/fixtures/fixturesTests/BranchesTests.m" line-rate="1.0000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
|
64
|
+
<class name="BranchesTests.m" filename="spec/fixtures/fixturesTests/BranchesTests.m" line-rate="1.0000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
|
100
65
|
<methods/>
|
101
66
|
<lines>
|
67
|
+
<line number="18" branch="false" hits="2"/>
|
102
68
|
<line number="19" branch="false" hits="2"/>
|
69
|
+
<line number="20" branch="false" hits="2"/>
|
103
70
|
<line number="21" branch="false" hits="2"/>
|
71
|
+
<line number="23" branch="false" hits="2"/>
|
72
|
+
<line number="24" branch="false" hits="2"/>
|
104
73
|
<line number="25" branch="false" hits="2"/>
|
105
74
|
<line number="26" branch="false" hits="2"/>
|
75
|
+
<line number="28" branch="false" hits="1"/>
|
106
76
|
<line number="29" branch="false" hits="1"/>
|
107
77
|
<line number="30" branch="false" hits="1"/>
|
108
78
|
<line number="31" branch="false" hits="1"/>
|
79
|
+
<line number="33" branch="false" hits="1"/>
|
109
80
|
<line number="34" branch="false" hits="1"/>
|
110
81
|
<line number="35" branch="false" hits="1"/>
|
111
82
|
<line number="36" branch="false" hits="1"/>
|
112
83
|
</lines>
|
113
84
|
</class>
|
114
|
-
<class name="fixturesTests" filename="spec/fixtures/fixturesTests/fixturesTests.m" line-rate="1.0000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
|
85
|
+
<class name="fixturesTests.m" filename="spec/fixtures/fixturesTests/fixturesTests.m" line-rate="1.0000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
|
115
86
|
<methods/>
|
116
87
|
<lines>
|
88
|
+
<line number="19" branch="false" hits="1"/>
|
117
89
|
<line number="20" branch="false" hits="1"/>
|
90
|
+
<line number="21" branch="false" hits="1"/>
|
118
91
|
<line number="22" branch="false" hits="1"/>
|
92
|
+
<line number="25" branch="false" hits="1"/>
|
93
|
+
<line number="26" branch="false" hits="1"/>
|
119
94
|
<line number="27" branch="false" hits="1"/>
|
120
95
|
<line number="28" branch="false" hits="1"/>
|
96
|
+
<line number="31" branch="false" hits="1"/>
|
121
97
|
<line number="32" branch="false" hits="1"/>
|
122
98
|
<line number="33" branch="false" hits="1"/>
|
123
99
|
<line number="34" branch="false" hits="1"/>
|
124
100
|
</lines>
|
125
101
|
</class>
|
126
|
-
<class name="peekaviewTests" filename="spec/fixtures/fixturesTests/peekaviewTests.m" line-rate="1.0000000000000000" branch-rate="
|
102
|
+
<class name="peekaviewTests.m" filename="spec/fixtures/fixturesTests/peekaviewTests.m" line-rate="1.0000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
|
127
103
|
<methods/>
|
128
104
|
<lines>
|
105
|
+
<line number="18" branch="false" hits="1"/>
|
129
106
|
<line number="19" branch="false" hits="1"/>
|
107
|
+
<line number="20" branch="false" hits="1"/>
|
130
108
|
<line number="21" branch="false" hits="1"/>
|
109
|
+
<line number="24" branch="false" hits="1"/>
|
110
|
+
<line number="25" branch="false" hits="1"/>
|
131
111
|
<line number="26" branch="false" hits="1"/>
|
132
112
|
<line number="27" branch="false" hits="1"/>
|
133
|
-
<line number="
|
134
|
-
|
135
|
-
<condition number="0" type="jump" coverage="3%"/>
|
136
|
-
</conditions>
|
137
|
-
</line>
|
113
|
+
<line number="30" branch="false" hits="1"/>
|
114
|
+
<line number="31" branch="false" hits="1"/>
|
138
115
|
<line number="32" branch="false" hits="1"/>
|
139
116
|
</lines>
|
140
117
|
</class>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
import UIKit
|
3
|
+
|
4
|
+
@UIApplicationMain
|
5
|
+
class AppDelegate: UIResponder, UIApplicationDelegate {
|
6
|
+
|
7
|
+
var window: UIWindow?
|
8
|
+
|
9
|
+
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
|
10
|
+
return true
|
11
|
+
}
|
12
|
+
|
13
|
+
func applicationWillResignActive(application: UIApplication) {
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
//
|
2
|
+
// other_fixtures.m
|
3
|
+
// fixtures
|
4
|
+
//
|
5
|
+
// Created by Mark Larsen on 6/24/14.
|
6
|
+
// Copyright (c) 2014 marklarr. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "other_fixtures.h"
|
10
|
+
|
11
|
+
@implementation other_fixtures
|
12
|
+
|
13
|
+
- (void)testedMethod
|
14
|
+
{
|
15
|
+
NSLog(@"tested");
|
16
|
+
}
|
17
|
+
|
18
|
+
- (void)untestedMethod
|
19
|
+
{
|
20
|
+
NSLog(@"untested");
|
21
|
+
}
|
22
|
+
|
23
|
+
@end
|