Skip to content

Commit 0a1ed30

Browse files
committed
updates
1 parent 2e40124 commit 0a1ed30

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

send_cobertura_to_bitbucket.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,24 @@ def parse_cobertura(xml_path, send_all_coverage):
6262
publishAnnotation = True
6363

6464
if True: #publishAnnotation:
65-
annotations.append({
66-
"path": file_path,
67-
"line": num,
68-
"external_id": "{}#{}".format(file_path,num),
69-
'message' : summary
70-
}
71-
)
72-
7365
# annotations.append({
74-
# "title": "Coverage",
75-
# "annotation_type": "COVERAGE",
76-
# "summary": summary,
77-
# "severity": "LOW",
7866
# "path": file_path,
7967
# "line": num,
80-
# "external_id": "{}#{}".format(file_path,num)
68+
# "external_id": "{}#{}".format(file_path,num),
69+
# 'message' : summary
8170
# }
8271
# )
72+
73+
annotations.append({
74+
"title": "Coverage",
75+
"annotation_type": "COVERAGE",
76+
"summary": summary,
77+
"severity": "LOW",
78+
"path": file_path,
79+
"line": num,
80+
"external_id": "{}#{}".format(file_path,num)
81+
}
82+
)
8383
return annotations
8484

8585
def get_summary_string(type_str, rate):

0 commit comments

Comments
 (0)