Skip to content

Commit c871564

Browse files
committed
updates
1 parent 240547d commit c871564

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

send_cobertura_to_bitbucket.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import os, sys
55
import json
66

7+
from vcast_utils import getVectorCASTEncoding
8+
79
from pprint import pprint
810

911
PASS = "✅"
@@ -207,6 +209,12 @@ def run(filename, minimum_passing_coverage, verbose):
207209

208210
annotations = parse_cobertura(filename)
209211

212+
encFmt = getVectorCASTEncoding()
213+
214+
215+
with open("coverage_results.dat", "w") as fd:
216+
write(json.dumps(annotations).encode(encFmt,'replace'))
217+
210218
send_code_coverage_annoations(
211219
annotations,
212220
workspace,

0 commit comments

Comments
 (0)