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

Task 231: Article Content TDD — Report Content Verification Tests

完了 ← タスク一覧

Task 231: Article Content TDD — Report Content Verification Tests

Status: DONE

Human Directive

単に記事の存在をチェックするのみのテストにはあまり意味が無い。Web ページとしての成立性検証(レンダリングが正しく行われているか、リンク先が機能しているか、など)と記事そのもののテストは論理的に意味が異なるもの。特に後者についてはテストの仕組みを既存のツール(Playwright など)に乗っかりにくいため、このプロジェクト内でメンテナンスする必要がある。その中で、記事内の検証を「テスト」として扱い、それによる TDD 的アプローチによる記事編集・自動テストによる記事の内容が検証されている状態の維持を行う。

Goal

Distinguish between two categories of tests and build infrastructure for the second:

Category 1: Web Page Rendering Tests (existing, Playwright)

Category 2: Article Content Verification Tests (new)

Approach

Build a report content verification test suite within the TS test infrastructure that:

  1. Parses MDX report files
  2. Extracts factual claims (numerical values, parameters, cross-references)
  3. Validates them against source data (calculation files, transcription data, git metadata)
  4. Runs as part of npm test (not Playwright) for fast feedback

Implementation

Created ts/src/article-content-validation.test.ts with 31 tests covering:

Tech-overview stats freshness (7 tests)

Per-episode article content (5 episodes, 16 tests total)

Cross-report consistency (6 tests)

Verdict summary (2 tests)

Design decisions resolved