feat: add test execution history manager

This commit is contained in:
张翔
2026-03-13 11:30:07 +08:00
parent f272e8499d
commit a3e7114349
4 changed files with 128 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
const fs = require('fs');
const path = require('path');
const HISTORY_FILE = path.join(__dirname, 'test-history.json');
console.log('Testing history file...');
if (fs.existsSync(HISTORY_FILE)) {
const data = fs.readFileSync(HISTORY_FILE, 'utf-8');
const history = JSON.parse(data);
console.log('✅ History loaded successfully');
console.log('Records:', history.records.length);
console.log('Last updated:', new Date(history.lastUpdated).toISOString());
} else {
console.log('❌ History file not found');
}