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,53 @@
|
||||
#!/usr/bin/env python3
|
||||
import json
|
||||
import sys
|
||||
|
||||
with open('test-framework/reports/results.json', 'r') as f:
|
||||
data = json.load(f)
|
||||
|
||||
print("=" * 60)
|
||||
print("PLAYWRIGHT TEST RESULTS ANALYSIS")
|
||||
print("=" * 60)
|
||||
|
||||
print("\n1. OVERALL STATS:")
|
||||
stats = data.get('stats', {})
|
||||
for key, value in stats.items():
|
||||
print(f" {key}: {value}")
|
||||
|
||||
print("\n2. CONFIGURATION:")
|
||||
config = data.get('config', {})
|
||||
print(f" Root Dir: {config.get('rootDir', 'N/A')}")
|
||||
print(f" Fully Parallel: {config.get('fullyParallel', 'N/A')}")
|
||||
print(f" Actual Workers: {config.get('metadata', {}).get('actualWorkers', 'N/A')}")
|
||||
|
||||
print("\n3. PROJECTS:")
|
||||
projects = config.get('projects', [])
|
||||
for project in projects:
|
||||
print(f" - {project.get('name', 'Unknown')}")
|
||||
|
||||
print("\n4. SUITES:")
|
||||
suites = data.get('suites', [])
|
||||
for i, suite in enumerate(suites):
|
||||
print(f" Suite {i}: {suite.get('title', 'Unknown')}")
|
||||
specs = suite.get('specs', [])
|
||||
print(f" Specs count: {len(specs)}")
|
||||
for j, spec in enumerate(specs):
|
||||
print(f" Spec {j}: {spec.get('title', 'Unknown')}")
|
||||
tests = spec.get('tests', [])
|
||||
print(f" Tests count: {len(tests)}")
|
||||
for k, test in enumerate(tests):
|
||||
print(f" Test {k}: {test.get('title', 'Unknown')}")
|
||||
results = test.get('results', [])
|
||||
for l, result in enumerate(results):
|
||||
status = result.get('status', 'unknown')
|
||||
print(f" Result {l}: {status}")
|
||||
|
||||
print("\n5. ERRORS:")
|
||||
errors = data.get('errors', [])
|
||||
if errors:
|
||||
for error in errors:
|
||||
print(f" - {error}")
|
||||
else:
|
||||
print(" None")
|
||||
|
||||
print("\n" + "=" * 60)
|
||||
Reference in New Issue
Block a user