Skip to content

Instantly share code, notes, and snippets.

@cconstable
Created March 19, 2020 17:33
Show Gist options
  • Save cconstable/434805ad1a629cc59db132dd03e22c05 to your computer and use it in GitHub Desktop.
Save cconstable/434805ad1a629cc59db132dd03e22c05 to your computer and use it in GitHub Desktop.
Add file path to xcov output
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