slather 1.8.3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
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,134 +1,71 @@
1
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2
2
  <html>
3
- <head>
4
- <title>fixtures.xcodeproj - Slather</title>
5
- <link href="../../../assets/slather.css" media="all" rel="stylesheet">
6
- </head>
7
-
8
- <body>
9
- <header>
10
- <div class="row">
11
- <a href="index.html"><img src="../../../docs/logo.jpg" alt="Slather logo"></a>
12
- </div>
13
- </header>
14
-
15
- <div class="row">
16
- <div id="reports">
17
- <h2>Files for "fixtures.xcodeproj"</h2>
18
- <h4>
19
- <span>Total Coverage : </span>
20
- <span class="cov_low" id="total_coverage">66.04%</span>
21
- </h4>
22
-
23
- <input class="search" placeholder="Search" />
24
-
25
- <table class="coverage_list" cellspacing="0" cellpadding="0">
26
- <thead>
27
- <tr>
28
- <th class="col_num sort" data-sort="data_percentage">%</span></th>
29
- <th class="sort" data-sort="data_filename">File</th>
30
- <th class="col_percent sort" data-sort="data_lines">Lines</th>
31
- <th class="col_percent sort" data-sort="data_relevant">Relevant</th>
32
- <th class="col_percent sort" data-sort="data_covered">Covered</th>
33
- <th class="col_percent sort" data-sort="data_missed">Missed</th>
34
- </tr>
35
- </thead>
36
- <tbody class="list">
37
- <tr>
38
- <td><span class="percentage cov_low data_percentage">50.00</span></td>
39
- <td class="data_filename"><a href="Branches.m.html">Branches.m</a></td>
40
- <td class="data_lines">45</td>
41
- <td class="data_relevant">20</td>
42
- <td class="data_covered">10</td>
43
- <td class="data_missed">10</td>
44
- </tr>
45
- <tr>
46
- <td><span class="percentage cov_high data_percentage">100.00</span></td>
47
- <td class="data_filename"><a href="Empty.m.html">Empty.m</a></td>
48
- <td class="data_lines">0</td>
49
- <td class="data_relevant">0</td>
50
- <td class="data_covered">0</td>
51
- <td class="data_missed">0</td>
52
- </tr>
53
- <tr>
54
- <td><span class="percentage cov_low data_percentage">50.00</span></td>
55
- <td class="data_filename"><a href="fixtures.m.html">fixtures.m</a></td>
56
- <td class="data_lines">23</td>
57
- <td class="data_relevant">4</td>
58
- <td class="data_covered">2</td>
59
- <td class="data_missed">2</td>
60
- </tr>
61
- <tr>
62
- <td><span class="percentage cov_high data_percentage">100.00</span></td>
63
- <td class="data_filename"><a href="fixtures_cpp.cpp.html">fixtures_cpp.cpp</a></td>
64
- <td class="data_lines">0</td>
65
- <td class="data_relevant">0</td>
66
- <td class="data_covered">0</td>
67
- <td class="data_missed">0</td>
68
- </tr>
69
- <tr>
70
- <td><span class="percentage cov_high data_percentage">100.00</span></td>
71
- <td class="data_filename"><a href="fixtures_m.m.html">fixtures_m.m</a></td>
72
- <td class="data_lines">0</td>
73
- <td class="data_relevant">0</td>
74
- <td class="data_covered">0</td>
75
- <td class="data_missed">0</td>
76
- </tr>
77
- <tr>
78
- <td><span class="percentage cov_high data_percentage">100.00</span></td>
79
- <td class="data_filename"><a href="fixtures_mm.mm.html">fixtures_mm.mm</a></td>
80
- <td class="data_lines">0</td>
81
- <td class="data_relevant">0</td>
82
- <td class="data_covered">0</td>
83
- <td class="data_missed">0</td>
84
- </tr>
85
- <tr>
86
- <td><span class="percentage cov_low data_percentage">0.00</span></td>
87
- <td class="data_filename"><a href="peekaview.m.html">peekaview.m</a></td>
88
- <td class="data_lines">31</td>
89
- <td class="data_relevant">6</td>
90
- <td class="data_covered">0</td>
91
- <td class="data_missed">6</td>
92
- </tr>
93
- <tr>
94
- <td><span class="percentage cov_high data_percentage">100.00</span></td>
95
- <td class="data_filename"><a href="BranchesTests.m.html">BranchesTests.m</a></td>
96
- <td class="data_lines">38</td>
97
- <td class="data_relevant">10</td>
98
- <td class="data_covered">10</td>
99
- <td class="data_missed">0</td>
100
- </tr>
101
- <tr>
102
- <td><span class="percentage cov_high data_percentage">100.00</span></td>
103
- <td class="data_filename"><a href="fixturesTests.m.html">fixturesTests.m</a></td>
104
- <td class="data_lines">36</td>
105
- <td class="data_relevant">7</td>
106
- <td class="data_covered">7</td>
107
- <td class="data_missed">0</td>
108
- </tr>
109
- <tr>
110
- <td><span class="percentage cov_high data_percentage">100.00</span></td>
111
- <td class="data_filename"><a href="peekaviewTests.m.html">peekaviewTests.m</a></td>
112
- <td class="data_lines">34</td>
113
- <td class="data_relevant">6</td>
114
- <td class="data_covered">6</td>
115
- <td class="data_missed">0</td>
116
- </tr>
117
- </tbody>
118
- </table>
119
- </div>
120
- </div>
121
-
122
- <footer>
123
- <div class="row">
124
- <p><a href="https://github.com/venmo/slather">Fork me on Github</a></p>
125
- <p>&copy; 2015 Slather</p>
126
- </div>
127
- </footer>
128
-
129
- <script src="../../../assets/list.min.js" charset="utf-8"></script>
130
- <script>
131
- var reports = new List('reports', { valueNames: [ 'data_percentage', 'data_filename', 'data_lines', 'data_relevant', 'data_covered', 'data_missed' ]});
132
- </script>
133
- </body>
3
+ <head>
4
+ <title>fixtures.xcodeproj - Slather</title>
5
+ <link href="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/slather.css" media="all" rel="stylesheet">
6
+ </head>
7
+ <body>
8
+ <header><div class="row"><a href="index.html"><img src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/docs/logo.jpg" alt="Slather logo"></a></div></header><div class="row"><div id="reports">
9
+ <h2>Files for "fixtures.xcodeproj"</h2>
10
+ <h4>
11
+ <span>Total Coverage : </span><span class="cov_medium" id="total_coverage">73.33%</span>
12
+ </h4>
13
+ <input class="search" placeholder="Search"><table class="coverage_list" cellspacing="0" cellpadding="0">
14
+ <thead><tr>
15
+ <th class="col_num sort" data-sort="data_percentage">%</th>
16
+ <th class="sort" data-sort="data_filename">File</th>
17
+ <th class="col_percent sort" data-sort="data_lines">Lines</th>
18
+ <th class="col_percent sort" data-sort="data_relevant">Relevant</th>
19
+ <th class="col_percent sort" data-sort="data_covered">Covered</th>
20
+ <th class="col_percent sort" data-sort="data_missed">Missed</th>
21
+ </tr></thead>
22
+ <tbody class="list">
23
+ <tr>
24
+ <td><span class="percentage cov_low data_percentage">50.00</span></td>
25
+ <td class="data_filename"><a href="fixtures.m.html">fixtures.m</a></td>
26
+ <td class="data_lines">23</td>
27
+ <td class="data_relevant">6</td>
28
+ <td class="data_covered">3</td>
29
+ <td class="data_missed">3</td>
30
+ </tr>
31
+ <tr>
32
+ <td><span class="percentage cov_low data_percentage">43.33</span></td>
33
+ <td class="data_filename"><a href="Branches.m.html">Branches.m</a></td>
34
+ <td class="data_lines">45</td>
35
+ <td class="data_relevant">30</td>
36
+ <td class="data_covered">13</td>
37
+ <td class="data_missed">17</td>
38
+ </tr>
39
+ <tr>
40
+ <td><span class="percentage cov_high data_percentage">100.00</span></td>
41
+ <td class="data_filename"><a href="BranchesTests.m.html">BranchesTests.m</a></td>
42
+ <td class="data_lines">38</td>
43
+ <td class="data_relevant">16</td>
44
+ <td class="data_covered">16</td>
45
+ <td class="data_missed">0</td>
46
+ </tr>
47
+ <tr>
48
+ <td><span class="percentage cov_high data_percentage">100.00</span></td>
49
+ <td class="data_filename"><a href="fixturesTests.m.html">fixturesTests.m</a></td>
50
+ <td class="data_lines">36</td>
51
+ <td class="data_relevant">12</td>
52
+ <td class="data_covered">12</td>
53
+ <td class="data_missed">0</td>
54
+ </tr>
55
+ <tr>
56
+ <td><span class="percentage cov_high data_percentage">100.00</span></td>
57
+ <td class="data_filename"><a href="peekaviewTests.m.html">peekaviewTests.m</a></td>
58
+ <td class="data_lines">34</td>
59
+ <td class="data_relevant">11</td>
60
+ <td class="data_covered">11</td>
61
+ <td class="data_missed">0</td>
62
+ </tr>
63
+ </tbody>
64
+ </table>
65
+ </div></div>
66
+ <footer><div class="row">
67
+ <p><a href="https://github.com/venmo/slather">Fork me on Github</a></p>
68
+ <p>&copy; 2016 Slather</p>
69
+ </div></footer><script src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/list.min.js"></script><script>var reports = new List('reports', { valueNames: [ 'data_percentage', 'data_filename', 'data_lines', 'data_relevant', 'data_covered', 'data_missed' ]});</script>
70
+ </body>
134
71
  </html>