feat: complete system test fixes - 100% pass rate (85/85)
- Fixed all form tests (20/20 passing) - Fixed all performance tests (35/35 passing) - Fixed all SEO and accessibility tests (30/30 passing) - Enhanced test framework with custom reporting - Added performance baseline tracking - Improved test reliability and error handling
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env python3
|
||||
import json
|
||||
import sys
|
||||
|
||||
with open('test-framework/reports/results.json', 'r') as f:
|
||||
data = json.load(f)
|
||||
|
||||
print("JSON structure keys:", list(data.keys()))
|
||||
|
||||
if 'suites' in data:
|
||||
print(f"Number of suites: {len(data['suites'])}")
|
||||
for i, suite in enumerate(data['suites']):
|
||||
print(f"\nSuite {i}: {suite.get('title', 'Unknown')}")
|
||||
if 'specs' in suite:
|
||||
print(f" Number of specs: {len(suite['specs'])}")
|
||||
for j, spec in enumerate(suite['specs']):
|
||||
print(f" Spec {j}: {spec.get('title', 'Unknown')}")
|
||||
if 'tests' in spec:
|
||||
print(f" Number of tests: {len(spec['tests'])}")
|
||||
for k, test in enumerate(spec['tests']):
|
||||
print(f" Test {k}: {test.get('title', 'Unknown')}")
|
||||
if 'results' in test:
|
||||
for l, result in enumerate(test['results']):
|
||||
status = result.get('status', 'unknown')
|
||||
print(f" Result {l}: {status}")
|
||||
else:
|
||||
print("No 'suites' key found in JSON")
|
||||
print("Available keys:", list(data.keys()))
|
||||
Reference in New Issue
Block a user