xcov 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xcov/manager.rb +5 -0
- data/lib/xcov/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f9fd23056fe7c21f3e20fb62814b10715e4dbcea016c57114b54f7ebbcf904b
|
4
|
+
data.tar.gz: f29f43359b5fdfdb72b33760341b61e3dc51293d84d207cace704c669be639ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74424f15672e083e2936c0a42b46be69e02f6f556766a98b9fc786118bcb45eb6b5c621c8c9f457b3cb84b6e53a9707a44b050edb80c6ffaa44c4c869daa856e
|
7
|
+
data.tar.gz: c1b3101eabaf8ddb241fa7da1019c3d53b0111d207c08f997ec30c9b0eff4084e5e5bfd159251bbeb3901700d78297172af375ad0870e30e971334d7678fe583
|
data/lib/xcov/manager.rb
CHANGED
@@ -160,6 +160,11 @@ module Xcov
|
|
160
160
|
report.targets.each do |target|
|
161
161
|
table_rows << [target.name, target.displayable_coverage]
|
162
162
|
end
|
163
|
+
|
164
|
+
if report.targets.count > 0
|
165
|
+
table_rows << ["Average Coverage", "#{"%.2f%%" % (report.coverage*100)}"]
|
166
|
+
end
|
167
|
+
|
163
168
|
puts Terminal::Table.new({
|
164
169
|
title: "xcov Coverage Report".green,
|
165
170
|
rows: table_rows
|
data/lib/xcov/version.rb
CHANGED