slather 1.8.3 → 2.0.0

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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/.travis.yml +1 -0
  4. data/CHANGELOG.md +21 -1
  5. data/README.md +15 -10
  6. data/README_Images/test_scheme.png +0 -0
  7. data/Rakefile +6 -0
  8. data/bin/slather +45 -6
  9. data/lib/slather/coverage_file.rb +37 -90
  10. data/lib/slather/coverage_info.rb +84 -0
  11. data/lib/slather/coverage_service/cobertura_xml_output.rb +10 -6
  12. data/lib/slather/coverage_service/coveralls.rb +5 -1
  13. data/lib/slather/coverage_service/gutter_json_output.rb +12 -8
  14. data/lib/slather/coverage_service/hardcover.rb +5 -1
  15. data/lib/slather/coverage_service/html_output.rb +32 -19
  16. data/lib/slather/coverage_service/simple_output.rb +5 -1
  17. data/lib/slather/{coveralls_coverage_file.rb → coveralls_coverage.rb} +1 -1
  18. data/lib/slather/profdata_coverage_file.rb +130 -0
  19. data/lib/slather/project.rb +191 -27
  20. data/lib/slather/version.rb +1 -1
  21. data/lib/slather.rb +9 -1
  22. data/slather.gemspec +4 -4
  23. data/spec/fixtures/cobertura.xml +56 -79
  24. data/spec/fixtures/fixtures/Fixtures.swift +15 -0
  25. data/spec/fixtures/fixtures/other_fixtures.m +23 -0
  26. data/spec/fixtures/fixtures_html/Branches.m.html +244 -258
  27. data/spec/fixtures/fixtures_html/BranchesTests.m.html +209 -225
  28. data/spec/fixtures/fixtures_html/fixtures.m.html +134 -148
  29. data/spec/fixtures/fixtures_html/fixturesTests.m.html +199 -213
  30. data/spec/fixtures/fixtures_html/index.html +68 -131
  31. data/spec/fixtures/fixtures_html/peekaviewTests.m.html +189 -203
  32. data/spec/fixtures/gutter.json +1 -1
  33. data/spec/slather/coverage_file_spec.rb +20 -12
  34. data/spec/slather/coverage_service/cobertura_xml_spec.rb +7 -3
  35. data/spec/slather/coverage_service/coveralls_spec.rb +61 -20
  36. data/spec/slather/coverage_service/gutter_json_spec.rb +6 -2
  37. data/spec/slather/coverage_service/hardcover_spec.rb +33 -3
  38. data/spec/slather/coverage_service/html_output_spec.rb +48 -7
  39. data/spec/slather/coverage_service/simple_output_spec.rb +12 -13
  40. data/spec/slather/profdata_coverage_spec.rb +128 -0
  41. data/spec/slather/project_spec.rb +222 -49
  42. data/spec/spec_helper.rb +28 -2
  43. metadata +58 -46
  44. data/spec/fixtures/fixtures_html/Empty.m.html +0 -30
  45. data/spec/fixtures/fixtures_html/fixtures_cpp.cpp.html +0 -30
  46. data/spec/fixtures/fixtures_html/fixtures_m.m.html +0 -30
  47. data/spec/fixtures/fixtures_html/fixtures_mm.mm.html +0 -30
  48. data/spec/fixtures/fixtures_html/peekaview.m.html +0 -190
@@ -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.6603773584905660" branch-rate="0.1190476190476190" lines-covered="35" lines-valid="53" branches-covered="5" branches-valid="42" complexity="0.0" timestamp="1428118535" version="Slather 1.6.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/marklarsen/programming/slather</source>
5
+ <source>/Users/civetta/Works/Personal/slather/viteinfinite-slather</source>
6
6
  </sources>
7
7
  <packages>
8
- <package name="spec.fixtures.fixtures.more_files" line-rate="0.3846153846153846" branch-rate="0.3333333333333333" complexity="0.0">
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.5000000000000000" branch-rate="0.4000000000000000" complexity="0.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="13" branch="false" hits="2"/>
14
- <line number="15" branch="true" hits="2" condition-coverage="100% (2/2)">
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="18" branch="true" hits="1" condition-coverage="50% (1/2)">
21
- <conditions>
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="true" hits="2" condition-coverage="50% (1/2)">
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="29" branch="true" hits="0" condition-coverage="0% (0/4)">
37
- <conditions>
38
- <condition number="0" type="jump" coverage="0%"/>
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="43" branch="false" hits="2"/>
49
- </lines>
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.fixtures" line-rate="0.5000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
62
+ <package name="spec.fixtures.fixturesTests" line-rate="1.0000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
73
63
  <classes>
74
- <class name="fixtures" filename="spec/fixtures/fixtures/fixtures.m" line-rate="0.5000000000000000" branch-rate="1.0000000000000000" complexity="0.0">
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="0.0333333333333333" complexity="0.0">
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="31" branch="true" hits="2" condition-coverage="3% (1/30)">
134
- <conditions>
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