Skip to content

[Story] Safety net before refactoring: portable test baseline and feature-level characterization tests #28

Done

Description

@aMonteSl

As a developer refactoring Code-XR,
I want a fully green, portable test baseline plus tests that pin the user-visible surface of the extension,
so that any regression introduced by the cleanup is caught by CI on Linux, Windows and macOS instead of by a user.

Context

Waves W0/W1 of the v1.2.1 programme already added 154 tests (contract, sync, logger, command registry, ratchet). Gaps found on 2026-11-25:

Tasks

  • Make the decorator test path-portable (no behaviour change in src/).
  • Declare engines.node >= 24 in the root and extension package.json (dev only, not the VS Code engine).
  • Add test/baseline/featureBaseline.test.cjs: a snapshot of the manifest surface (command ids + titles, menu entries, view ids, settings), the runtime command registry, chart types, runtime asset list, language contract (names + extensions) and the Python CLI modes. Authorized removals are listed explicitly so the test documents each one as it lands.
  • Add the policy-walk roots that the monorepo move left out (docs/, adr/, packages/, apps/ide/, root README, .github/).
  • Commit the analysis documents in docs/cleanup/.

Acceptance criteria

  • npm test is 100 % green on Linux (and stays green on Windows and macOS in CI).
  • The feature-baseline test fails if any contributed command, menu entry, view, chart type, runtime or language disappears without being listed as an authorized removal.
  • No file under src/, templates/ or backend/src changes in this story; the production dist/extension.js is byte-identical (H1).

Activity

  1. self-assigned this
    on Nov 25, 2026
  2. added
    tfm
    user-story
    on Nov 25, 2026
  3. aMonteSl commented on Nov 25, 2026

    @aMonteSl
    CollaboratorAuthor

    Done in #44, merged into v1.2.1 (CI green on Windows, Linux and macOS).

    • npm test 708/709 → 715/715 on Linux (path-portable decorator fixture).
    • test/baseline/: executable feature baseline (snapshot of the whole user-visible surface + the authorized-removals register). It fails on any unauthorized loss; mutation-checked.
    • Emoji/NUL policy walks now cover the monorepo root text.
    • engines.node >= 24 at the root.
    • Analysis documents in docs/cleanup/.

    No file under src/, templates/ or backend/src changed.


    Generated by Claude Code

  4. added
    stream: cleanup-refactor
    area: testing
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: testingstream: cleanup-refactortfmuser-story

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions