Skip to content

[Feature]: Move root test/ folder into src/test/ #381

Open

Description

Is your feature request related to a problem? Please describe.

Extension tests live in two places:

  • src/test/: all unit tests and Playwright E2E specs, plus manifest fixtures (src/test/fixtures).
  • test/ at the repo root: the XAML language-server integration tests (test/xaml-integration) and the shared WinUI 3 fixture app (test/fixtures/xaml/fixture). Since Add WinUI DevTools support to launch and debug #295, the DevTools E2E specs also use that fixture.

That makes it harder to find tests and fixtures.

Describe the solution you'd like

Move everything under root test/ into src/test/, so all extension tests and fixtures are in one place, for example src/test/xaml-integration and src/test/fixtures/xaml/fixture. Then update every reference to the old paths:

  • .vscode-test.mjs (test/xaml-integration/**/*.test.js)
  • package.json restore:fixture
  • .github/workflows/build.yml (smoke fixture restore)
  • .pipelines/release-vsc.yml (fixture restore)
  • server/test and server/test/lsp-smoke, which resolve test/fixtures/xaml/fixture
  • src/test/e2e/devtools-fixture.ts (FIXTURE_APP_DIR)
  • CONTRIBUTING.md

Also make sure the test:unit copy step (src/test/fixtures -> out/test/fixtures) doesn't copy the fixture's bin/obj, and that tsconfig.json doesn't compile the fixture's JS tests twice.

Additional context

Follow-up from review feedback on #295. That PR left the layout as it is to keep its scope focused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions