Skip to content

REC e2e fixture 可移植性 — ooxml-swift 測試跨 repo 引用 gitignored test-files/,standalone clone 靜默 XCTSkip #172

Description

@kiki830621

Problem

RawChannelSlotTests 的 REC e2e 測試曾以 #filePath 往上跨 repo 引用 gitignored private fixture,standalone clone/CI 只能靜默跳過。

Type

refactor

Expected

REC 與 thesis 真實 fixture 皆透過明確 environment gate 提供;預設 hermetic 測試維持強制,opt-in fixture 缺少時訊息必須可操作且不可洩漏主機路徑。

Cross-repo implementation


Current Status

Phase: implemented (upstream verified; awaiting merge)
Last updated: 2026-08-31 by idd-verify

Key Decisions

  • 使用既有 MACDOC_TEMPLATE_DIR / TemplateFixtureGate;不提交 private 文件。
  • Hermetic raw-channel tests 保持 mandatory;真實 REC/thesis tests 為 opt-in 且 loud skip。
  • Missing fixture 訊息只列環境變數與精確檔名,不列實際 host directory。

Scope Changes

Blocking

Upstream Evidence

  • PR head 3d81a45
  • Full suite: 1,444 tests, 32 conditional skips, 0 failures
  • CodeQL: PASS
  • Five reviewers + Codex CLI: PASS

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorCode refactoring

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions