Skip to content

Commit

Permalink
Add skipped to statistics (#104)
Browse files Browse the repository at this point in the history
* Add teamcity statistics as something we can parse

* Add skipped count to statistics file
  • Loading branch information
Wolfe1 authored Mar 22, 2024
1 parent e6348e3 commit 2aa4213
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion robotframework_historic_parser/rfhistoricparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ def process_statistics_report(opts):
# Initialize counts
passed_count = 0
failed_count = 0
skipped_count = 0
total_count = 0

if opts.output.endswith('.json'):
Expand All @@ -344,6 +345,8 @@ def process_statistics_report(opts):
passed_count = int(prop['value'])
elif prop['name'] == 'FailedTestCount':
failed_count = int(prop['value'])
elif prop['name'] == 'SkippedTestCount':
skipped_count = int(prop['value'])
elif prop['name'] == 'TotalTestCount':
total_count = int(prop['value'])

Expand All @@ -352,7 +355,7 @@ def process_statistics_report(opts):
return

# insert test results info into db (adjust this part as needed)
insert_into_execution_table(mydb, rootdb, opts.executionname, total_count, passed_count, failed_count, 0, 0, 0, 0, 0, 0, opts.projectname)
insert_into_execution_table(mydb, rootdb, opts.executionname, total_count, passed_count, failed_count, 0, 0, 0, 0, skipped_count, 0, opts.projectname)

print("INFO: Writing statistics results")
mydb.close()
Expand Down

0 comments on commit 2aa4213

Please sign in to comment.