xcov 1.8.1 → 1.9.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.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/assets/stylesheets/main.css +1 -1
- data/lib/xcov/model/report.rb +3 -3
- data/lib/xcov/options.rb +6 -0
- data/lib/xcov/version.rb +1 -1
- data/lib/xcov-core/bin/xcov-core +0 -0
- data/views/report.erb +2 -2
- metadata +31 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e041ba88d235c198aaae10a8b9849c29f1f6d0728bc1aa712167b093f7da2588
|
|
4
|
+
data.tar.gz: 55815b7f8067da892383939ddca2a4a1e735b45941f8cc81fb257c7bd90b4228
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab89c03271e1e70572a569b10de924cf4eb9139e67bad584c278abea48d1026916904547f13ea78524b453bf834f1b280a1103394c117fd5b6dd7fb61ff43757
|
|
7
|
+
data.tar.gz: 726551c05f8ff7b8a71c3f985c01dbe3f91ff9d866921e2da947484b7909205c0466f901cefdf4b141161a497253628c5c130b25cf4181b63befa9f5b52f7ad6
|
data/README.md
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
-------
|
|
6
6
|
|
|
7
|
-
[](https://github.com/nakiostudio/xcov/blob/master/LICENSE)
|
|
7
|
+
[](https://github.com/fastlane-community/xcov/blob/master/LICENSE)
|
|
9
8
|
[](http://rubygems.org/gems/xcov)
|
|
10
9
|
[](http://rubygems.org/gems/xcov)
|
|
11
10
|
|
data/assets/stylesheets/main.css
CHANGED
data/lib/xcov/model/report.rb
CHANGED
|
@@ -18,9 +18,9 @@ module Xcov
|
|
|
18
18
|
def average_coverage targets
|
|
19
19
|
return 0 if targets.count == 0
|
|
20
20
|
return targets.first.coverage if targets.count == 1
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
totalCoveredLines = targets.reduce(0) { |acc, target| acc + target.files.reduce(0) { |acc, file| acc + file.coveredLines } }
|
|
22
|
+
totalExecutableLines = targets.reduce(0) { |acc, target| acc + target.files.reduce(0) { |acc, file| acc + file.executableLines } }
|
|
23
|
+
totalCoveredLines.to_f / totalExecutableLines.to_f
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def print_description
|
data/lib/xcov/options.rb
CHANGED
|
@@ -176,18 +176,21 @@ module Xcov
|
|
|
176
176
|
),
|
|
177
177
|
FastlaneCore::ConfigItem.new(
|
|
178
178
|
key: :skip_slack,
|
|
179
|
+
env_name: "XCOV_SKIP_SLACK",
|
|
179
180
|
description: "Don't publish to slack, even when an URL is given",
|
|
180
181
|
is_string: false,
|
|
181
182
|
default_value: false
|
|
182
183
|
),
|
|
183
184
|
FastlaneCore::ConfigItem.new(
|
|
184
185
|
key: :slack_username,
|
|
186
|
+
env_name: "XCOV_SLACK_USERNAME",
|
|
185
187
|
description: "The username which is used to publish to slack",
|
|
186
188
|
default_value: "xcov",
|
|
187
189
|
optional: true
|
|
188
190
|
),
|
|
189
191
|
FastlaneCore::ConfigItem.new(
|
|
190
192
|
key: :slack_message,
|
|
193
|
+
env_name: "XCOV_SLACK_MESSAGE",
|
|
191
194
|
description: "The message which is published together with a successful report",
|
|
192
195
|
default_value: "Your *xcov* coverage report",
|
|
193
196
|
optional: true
|
|
@@ -218,18 +221,21 @@ module Xcov
|
|
|
218
221
|
),
|
|
219
222
|
FastlaneCore::ConfigItem.new(
|
|
220
223
|
key: :exclude_targets,
|
|
224
|
+
env_name: "XCOV_EXCLUDE_TARGETS",
|
|
221
225
|
optional: true,
|
|
222
226
|
conflicting_options: [:include_targets, :only_project_targets],
|
|
223
227
|
description: "Comma separated list of targets to exclude from coverage report"
|
|
224
228
|
),
|
|
225
229
|
FastlaneCore::ConfigItem.new(
|
|
226
230
|
key: :include_targets,
|
|
231
|
+
env_name: "XCOV_INCLUDE_TARGETS",
|
|
227
232
|
optional: true,
|
|
228
233
|
conflicting_options: [:exclude_targets, :only_project_targets],
|
|
229
234
|
description: "Comma separated list of targets to include in coverage report. If specified then exlude_targets will be ignored"
|
|
230
235
|
),
|
|
231
236
|
FastlaneCore::ConfigItem.new(
|
|
232
237
|
key: :only_project_targets,
|
|
238
|
+
env_name: "XCOV_ONLY_PROJECT_TARGETS",
|
|
233
239
|
optional: true,
|
|
234
240
|
conflicting_options: [:exclude_targets, :include_targets],
|
|
235
241
|
description: "Display the coverage only for main project targets (e.g. skip Pods targets)",
|
data/lib/xcov/version.rb
CHANGED
data/lib/xcov-core/bin/xcov-core
CHANGED
|
Binary file
|
data/views/report.erb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<!--
|
|
3
3
|
xcov - Xcode code coverage without hassle
|
|
4
|
-
A tool developed by Carlos Vidal @
|
|
4
|
+
A tool developed by Carlos Vidal @nakiostudio
|
|
5
5
|
-->
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
@@ -54,7 +54,7 @@ A tool developed by Carlos Vidal @carlostify
|
|
|
54
54
|
<div class="col-xs-12 col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8 text-center">
|
|
55
55
|
xcov - Xcode coverage reports without hassle - A tool developed by
|
|
56
56
|
<a href="https://github.com/nakiostudio" target="_blank">Carlos Vidal</a> -
|
|
57
|
-
<a href="https://
|
|
57
|
+
<a href="https://mastodon.online/@nakiostudio" target="_blank">@nakiostudio</a>
|
|
58
58
|
</div>
|
|
59
59
|
</div>
|
|
60
60
|
<!-- Footer ends here -->
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xcov
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carlos Vidal
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-11-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fastlane
|
|
@@ -100,6 +100,34 @@ dependencies:
|
|
|
100
100
|
- - "~>"
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
102
|
version: 0.2.0
|
|
103
|
+
- !ruby/object:Gem::Dependency
|
|
104
|
+
name: abbrev
|
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - ">="
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '0'
|
|
110
|
+
type: :runtime
|
|
111
|
+
prerelease: false
|
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
113
|
+
requirements:
|
|
114
|
+
- - ">="
|
|
115
|
+
- !ruby/object:Gem::Version
|
|
116
|
+
version: '0'
|
|
117
|
+
- !ruby/object:Gem::Dependency
|
|
118
|
+
name: nkf
|
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
|
120
|
+
requirements:
|
|
121
|
+
- - ">="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: '0'
|
|
124
|
+
type: :runtime
|
|
125
|
+
prerelease: false
|
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
127
|
+
requirements:
|
|
128
|
+
- - ">="
|
|
129
|
+
- !ruby/object:Gem::Version
|
|
130
|
+
version: '0'
|
|
103
131
|
- !ruby/object:Gem::Dependency
|
|
104
132
|
name: bundler
|
|
105
133
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -223,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
223
251
|
- !ruby/object:Gem::Version
|
|
224
252
|
version: '0'
|
|
225
253
|
requirements: []
|
|
226
|
-
rubygems_version: 3.
|
|
254
|
+
rubygems_version: 3.4.19
|
|
227
255
|
signing_key:
|
|
228
256
|
specification_version: 4
|
|
229
257
|
summary: xcov is a friendly visualizer for Xcode's code coverage files
|