feat: add automated test cleanup infrastructure

- Add cleanup-tests.sh script for automated test reorganization
- Safely backup manual test files with timestamps in tests/.backup/
- Generate cleanup-report.json with migration metrics
- Validate test structure after cleanup
- Log detailed cleanup progress and results

Enables safe migration from manual to automated testing
This commit is contained in:
William Valentin
2025-09-08 01:38:49 -07:00
parent d3c7513600
commit 1f62ffb3d8
5 changed files with 574 additions and 0 deletions

30
tests/cleanup-report.json Normal file
View File

@@ -0,0 +1,30 @@
{
"cleanup_date": "2025-09-08T08:20:49Z",
"removed_files": ["manual/admin-login-debug.js", "manual/auth-db-debug.js", "manual/debug-email-validation.js"],
"added_files": [
"__mocks__/index.js",
"e2e/auth-debug.spec.ts",
"e2e/test-utils.ts",
"integration/run-integration.sh",
"README-CLEANUP.md"
],
"optimizations": {
"removed_manual_tests": 3,
"added_automated_tests": 1,
"consolidated_mocks": true,
"added_test_utilities": true,
"improved_documentation": true
},
"test_count_before": {
"manual": 3,
"e2e": 5,
"integration": 1,
"unit": "variable"
},
"test_count_after": {
"manual": 0,
"e2e": 6,
"integration": 1,
"unit": "variable"
}
}