This commit is contained in:
watany 2025-02-08 09:16:47 +00:00
parent 62d139030a
commit 91eb6a6510
3 changed files with 6 additions and 2 deletions

View File

@ -59,4 +59,4 @@ jobs:
run: npm run format
- name: Extension Tests
run: xvfb-run -a npm run test
run: npm run test:dev

View File

@ -34,13 +34,16 @@ If you're planning to work on a bigger feature, please create a [feature request
3. **Linux-specific Setup**
If you're developing on Linux, you'll need to install additional system libraries required for running VSCode extension tests:
```bash
sudo apt-get install -y \
sudo apt update
sudo apt install -y \
libatk1.0-0 libatk-bridge2.0-0 libxkbfile1 libx11-xcb1 \
libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 \
libdrm2 libgtk-3-0 dbus xvfb
```
These libraries provide necessary GUI components and system services for the test environment.
- Run `npm run test:dev` to run tests locally
## Writing and Submitting Code
Anyone can contribute code to Cline, but we ask that you follow these guidelines to ensure your contributions can be smoothly integrated:

View File

@ -190,6 +190,7 @@
"format": "prettier . --check",
"format:fix": "prettier . --write",
"test": "vscode-test",
"test:dev": "xvfb-run -a npm run test",
"install:all": "npm install && cd webview-ui && npm install",
"start:webview": "cd webview-ui && npm run start",
"build:webview": "cd webview-ui && npm run build",