Class_generator/analyze-failures.js
StillHammer 05142bdfbc Implement comprehensive AI text report/export system
- Add AIReportSystem.js for detailed AI response capture and report generation
- Add AIReportInterface.js UI component for report access and export
- Integrate AI reporting into LLMValidator and SmartPreviewOrchestrator
- Add missing modules to Application.js configuration (unifiedDRS, smartPreviewOrchestrator)
- Create missing content/chapters/sbs.json for book metadata
- Enhance Application.js with debug logging for module loading
- Add multi-format export capabilities (text, HTML, JSON)
- Implement automatic learning insights extraction from AI feedback
- Add session management and performance tracking for AI reports

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-26 21:24:13 +08:00

26 lines
943 B
JavaScript

import { runAllTests } from './src/testing/runTests.js';
async function analyzeFailures() {
console.log('Running test suite...');
const results = await runAllTests();
console.log('\n=== DETAILED FAILURE ANALYSIS ===');
results.suites.forEach(suite => {
if (!suite.success && suite.result && suite.result.details) {
console.log(`\n${suite.suiteName}:`);
suite.result.details
.filter(test => test.state === 'failed')
.forEach(test => {
console.log(`${test.name}`);
console.log(` Error: ${test.error?.message || 'Unknown'}`);
if (test.error?.stack) {
const stackLine = test.error.stack.split('\n')[0];
console.log(` Stack: ${stackLine}`);
}
});
}
});
}
analyzeFailures().catch(console.error);