Created
March 19, 2020 17:33
-
-
Save cconstable/434805ad1a629cc59db132dd03e22c05 to your computer and use it in GitHub Desktop.
Add file path to xcov output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/xcov/model/source.rb b/lib/xcov/model/source.rb | |
index 573db44..8ad3ff6 100644 | |
--- a/lib/xcov/model/source.rb | |
+++ b/lib/xcov/model/source.rb | |
@@ -52,6 +52,7 @@ module Xcov | |
def json_value | |
value = { | |
"name" => @name, | |
+ "path" => @location, | |
"coverage" => @coverage, | |
"type" => @type, | |
"functions" => @functions ? @functions.map{ |function| function.json_value } : [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment