⚠ ネタバレ注意: 本サイトはSFアニメ「SOLAR LINE」の内容を詳細に分析しています。未視聴の方はご注意ください。
📝 AI生成コンテンツ: 本考証の大部分は AI(Claude Code 等)によって生成されています。内容の正確性については原作および引用元をご確認ください。

Task 372: Automated Stats Refresh Script

完了 ← タスク一覧

Task 372: Automated Stats Refresh Script

Status: DONE

Motivation

The tech-overview.md report contains statistics (test counts, task counts, total counts) that must be manually synchronized whenever tests are added or tasks are completed. This has been a recurring pain point — 27 separate "stats refresh" tasks have been created just to update these numbers. Each time a new task adds tests, the stats go stale and tests fail.

Implementation

Created npm run stats-refresh that automatically:

  1. Runs npm test and extracts TS test count from output
  2. Runs cargo test --workspace and sums Rust test counts
  3. Runs npx playwright test --list to count E2E tests
  4. Runs bash cross_validation/run.sh and counts [PASS]/✓/OK lines (all formats)
  5. Counts .md files in current_tasks/
  6. Runs git rev-list --count HEAD for commit count
  7. Updates both the stats table AND body text in tech-overview.md

Supports --dry-run flag to preview changes without writing.

Files

Results