Files
NowChessSystems/jacoco-reporter/test_counter.py
T
Janis 8f56a82104
Build & Test (NowChessSystems) TeamCity build finished
refactor: NCS-22 NCS-23 reworked modules and tests (#17)
Reviewed-on: #17
2026-04-06 09:07:39 +02:00

12 lines
305 B
Python

import glob,re
mods=['api','core','io','rule','ui']
tot=0
for m in mods:
s=0
for f in glob.glob(f'modules/{m}/build/test-results/test/TEST-*.xml'):
txt=open(f,encoding='utf-8').read(300)
m2=re.search(r'tests="(\d+)"',txt)
if m2:s+=int(m2.group(1))
print(f'{m}: {s}')
tot+=s
print('overall:',tot)