Skip to content

Instantly share code, notes, and snippets.

@vzakaznikov
Created July 6, 2020 23:20
Show Gist options
  • Save vzakaznikov/5ef9be79e6aff19579914725b4acb86c to your computer and use it in GitHub Desktop.
Save vzakaznikov/5ef9be79e6aff19579914725b4acb86c to your computer and use it in GitHub Desktop.
# Using testflows 1.6.24
#
# cat test.log | tfs report results --format json > results.json
#
# Include: raw.log and nice.log.txt
#
import json
with open("results.json") as source:
results = json.loads(source.read())
for test in results["tests"]:
print(f"{test['test']['test_name']}\t{test['result']['result_type']}\t{test['result']['message_rtime']}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment