Skip to content

Commit ab77227

Browse files
committed
Add UI-driven integration tests with vscode-extension-tester
Add test/ui/extension.test.ts (7 tests) using ExTester + Selenium WebDriver to exercise the real VS Code UI: - Status bar: verify Patchloom item appears with correct text - Show Status: invoke command, verify notification appears - Open Settings: invoke command, verify settings editor opens - Configure MCP: invoke command, verify quick pick or warning appears - Quick Action: invoke command, verify action picker or warning appears - Configuration changes: verify settings editor can find showStatusBar Infrastructure: - Add vscode-extension-tester and @types/mocha as devDependencies - Add tsconfig.uitest.json for UI test compilation - Add npm run test:ui script (not part of npm run check) - Add out-uitest/ and tsconfig.uitest.json to .vscodeignore UI tests run separately from the fast test suite since they launch a full VS Code window with WebDriver. Run with: npm run test:ui Closes #18 Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
1 parent 6057088 commit ab77227

6 files changed

Lines changed: 3033 additions & 76 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules/
22
out/
33
out-test/
4+
out-uitest/
45
*.vsix
56
.vscode-test/

.vscodeignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
src/**
44
test/**
55
out-test/**
6+
out-uitest/**
67
tsconfig.json
78
tsconfig.test.json
9+
tsconfig.uitest.json
810
.github/**
911
**/*.tsbuildinfo

0 commit comments

Comments
 (0)