You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
786 B
17 lines
786 B
|
7 days ago
|
# -*- coding: utf-8 -*-
|
||
|
|
"""票 09:数 json verdict 分布(当前 vs t06-regression 基线)。"""
|
||
|
|
import io, json, sys, collections
|
||
|
|
|
||
|
|
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||
|
|
E = r'e:\code\crm-backend-matt\.scratch\opportunity-e2e'
|
||
|
|
|
||
|
|
for tag in ['e2e-core-result.json', 'e2e-core-result-t06-regression.json',
|
||
|
|
'e2e-rules-result.json', 'e2e-rules-result-t06-regression.json']:
|
||
|
|
d = json.load(open(E + '\\' + tag, encoding='utf-8'))
|
||
|
|
cnt = collections.Counter(r['verdict'] for r in d['results'])
|
||
|
|
print(f'{tag}: {dict(cnt)} total={len(d["results"])}')
|
||
|
|
if 't06-regression' in tag:
|
||
|
|
for r in d['results']:
|
||
|
|
if r['verdict'] != '✅':
|
||
|
|
print(' 非✅:', r['flow'], '·', r['case'], '→', r['verdict'])
|