Skip to content

chore: add extension test#30

Merged
hardfist merged 4 commits intomainfrom
extension-test
Jul 20, 2025
Merged

chore: add extension test#30
hardfist merged 4 commits intomainfrom
extension-test

Conversation

@Amour1688
Copy link
Copy Markdown
Collaborator

No description provided.

@Amour1688 Amour1688 requested a review from Copilot July 20, 2025 11:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request sets up test infrastructure for the VS Code extension, refactoring the TypeScript configuration to support both build and test environments. The changes include setting up Mocha test framework, VS Code test runner integration, and removing the language server implementation.

Key changes:

  • Restructured TypeScript configuration with separate build and test configs
  • Added comprehensive test setup using Mocha and VS Code test framework
  • Removed existing language server implementation from server.ts
  • Updated CI workflow to run extension tests with proper display setup

Reviewed Changes

Copilot reviewed 15 out of 19 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/vscode-extension/tsconfig.test.json New test-specific TypeScript configuration
packages/vscode-extension/tsconfig.build.json New build-specific TypeScript configuration extending base config
packages/vscode-extension/tsconfig.json Refactored base config to include test files
packages/vscode-extension/src/server.ts Removed entire language server implementation
packages/vscode-extension/tests/suite/index.ts Test runner setup using Mocha and fast-glob
packages/vscode-extension/tests/suite/extension.test.ts Basic extension test for diagnostics
packages/vscode-extension/tests/runTest.ts VS Code test launcher configuration
packages/vscode-extension/package.json Added test dependencies and scripts
.github/workflows/ci.yml Updated CI to run extension tests with xvfb for Linux
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)

packages/vscode-extension/tests/suite/extension.test.ts:21

  • The test only verifies that there are 0 diagnostics, but doesn't test the actual functionality of the extension when there should be diagnostics present.
    assert.equal(diagnostics.length, 0);

Amour1688 and others added 3 commits July 20, 2025 19:50
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@hardfist hardfist merged commit 1c08638 into main Jul 20, 2025
3 checks passed
@hardfist hardfist deleted the extension-test branch July 20, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants