GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — refactor: 2 モード e2e の重複 spec を整理 + 振り分け基準を ADR-0009 に集約 (#207) by ymnao · Pull Request #231 · ymnao/scripta Conversation
Owner
概要#207 の解消。 scripta の e2e は 2 モード並行運用 (renderer-only + 実 Electron) で運用しているが、 ADR-0009 は既に「各モードの役割分担(テスト分類方針)」§ で領域別の spec 対応表 + 「mock で踏めるか」の判断原則を持つので、CLAUDE.md からはこれへの 1 行 pointer + 同 ADR の spec table 拡張 (pdf-pagebreak / structured-error 追加) で対応。parity-checklist の領域列挙も同 ADR pointer に集約 (3-place sync を解消)。 関連 Issuecloses #207 移行 Stage
変更内容
設計判断: issue 提案からの逸脱issue #207 は以下を提案していた:
本 PR は以下の通り逸脱: 1. CLAUDE.md には振り分け基準を直接書かず、ADR-0009 への 1 行 pointer に集約ADR-0009 §「各モードの役割分担(テスト分類方針)」が既に領域別 spec 対応表 + 「mock で踏めるか」の判断原則を持っているため。直接書くと CLAUDE.md / ADR / parity-checklist の 3-place sync を生む (本 PR の 2. audit comment は追加しない (TypeScript 型 conform で代替)
コメントを追加すると mechanism の triple-write (CLAUDE.md + api.ts + mock.ts) になり drift hazard を生む。TypeScript 型に任せる方が deep fix。 3. smoke.spec.ts は変更なし (削除も scope 絞り込みもしない)renderer-only smoke と 実 Electron smoke は layer が異なる:
layer が異なる以上、片方を絞り込むのではなく両方を独立 spec として維持。 動作確認UI / runtime 動作は変更なし (docs + comment 修正 + test 2 件削除 + describe rename のみ)。
/simplify + /code-review の経緯
skip した別 issue 候補 (本 PR scope 外、別 issue 起票検討)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions- e2e/settings-persistence.spec.ts → workspace-restoration.spec.ts (git mv):
sidebarVisible round-trip test 2 件削除 (in-memory mock 実証性なし、
実 Electron 側で完全 mirror 済)、残り 2 件は negative cases、
describe を scope 明示型 ("workspace restoration: skip / fallback
branches (mocked settings)") に変更
- CLAUDE.md: 振り分け基準を直接書かず、ADR-0009 §「各モードの役割分担
(テスト分類方針)」への 1 行 pointer を追加
- ADR-0009 spec table: Phase 4 で追加された pdf-pagebreak /
structured-error を追加 (9→11 spec)
- docs/parity-checklist.md: rename note を L261 に注記、L266 の領域
inline list (11 項目) を ADR-0009 への canonical pointer に圧縮
audit comment (issue 提案) は TypeScript 型 conform
(`const api: Api = { ... }` + `pnpm typecheck:e2e`) で既に enforce
されているため追加しない。詳細は PR 本文「設計判断」セクション参照。
closes #207
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
ymnao
added a commit
that referenced
this pull request
- `CHANGELOG.md` に v0.6.0 セクションを追加 - Internal: #206 → #229 (AppLayout useShallow), #208 → #230 (settings _schemaVersion + MIGRATIONS), #207 → #231 (2 モード e2e 振り分け + ADR-0009 集約), #225 → #232 (onNavigate wikilink target), #226 → #233 (useCollapseToggle hook), #228 → #234 (createScanAction factory), #227 → #235 (producer-side lineContent trim) - `package.json` の `version` を `0.5.0` → `0.6.0` - HANDOFF の規約通り、本 commit では `pnpm <script>` を呼ばない (lockfile / node_modules には触れない)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. refactor: 2 モード e2e の重複 spec を整理 + 振り分け基準を明文化Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |