chore: improve ci testing

This commit is contained in:
Justineo
2025-09-23 14:30:10 +08:00
committed by GU Yiling
parent 927f9a2c12
commit c983caca7d
6 changed files with 9 additions and 3 deletions

View File

@ -29,7 +29,7 @@ jobs:
run: pnpm install run: pnpm install
- name: Install Playwright - name: Install Playwright
run: pnpm exec playwright install --with-deps chromium run: pnpm run test:setup:ci
- name: Lint - name: Lint
run: pnpm run lint run: pnpm run lint

View File

@ -14,7 +14,7 @@ This project targets Vue 3 + TypeScript with ECMAScript modules. Follow the exis
## Testing Guidelines ## Testing Guidelines
For complete and up-to-date testing and CI guidance, see `tests/TESTING.md`. For complete and up-to-date testing and CI guidance, see [`tests/TESTING.md`](tests/TESTING.md).
## Commit & Pull Request Guidelines ## Commit & Pull Request Guidelines

View File

@ -436,6 +436,8 @@ pnpm dev
Open `http://localhost:5173` to see the demo. Open `http://localhost:5173` to see the demo.
For testing and CI details, see [`tests/TESTING.md`](tests/TESTING.md).
## Notice ## Notice
The Apache Software Foundation [Apache ECharts, ECharts](https://echarts.apache.org/), Apache, the Apache feather, and the Apache ECharts project logo are either registered trademarks or trademarks of the [Apache Software Foundation](https://www.apache.org/). The Apache Software Foundation [Apache ECharts, ECharts](https://echarts.apache.org/), Apache, the Apache feather, and the Apache ECharts project logo are either registered trademarks or trademarks of the [Apache Software Foundation](https://www.apache.org/).

View File

@ -436,6 +436,8 @@ pnpm dev
打开 `http://localhost:5173` 来查看 demo。 打开 `http://localhost:5173` 来查看 demo。
更多测试与 CI 说明请参见 [`tests/TESTING.md`](tests/TESTING.md)。
## 声明 ## 声明
The Apache Software Foundation [Apache ECharts, ECharts](https://echarts.apache.org/), Apache, the Apache feather, and the Apache ECharts project logo are either registered trademarks or trademarks of the [Apache Software Foundation](https://www.apache.org/). The Apache Software Foundation [Apache ECharts, ECharts](https://echarts.apache.org/), Apache, the Apache feather, and the Apache ECharts project logo are either registered trademarks or trademarks of the [Apache Software Foundation](https://www.apache.org/).

View File

@ -18,6 +18,8 @@
"dev:build": "vite build", "dev:build": "vite build",
"dev:preview": "vite preview", "dev:preview": "vite preview",
"dev:typecheck": "vue-tsc -p ./demo", "dev:typecheck": "vue-tsc -p ./demo",
"test:setup": "playwright install chromium",
"test:setup:ci": "playwright install --with-deps chromium",
"docs": "jiti ./scripts/docs.ts", "docs": "jiti ./scripts/docs.ts",
"release": "bumpp --execute \"pnpm run docs\" --all", "release": "bumpp --execute \"pnpm run docs\" --all",
"test": "vitest run", "test": "vitest run",

View File

@ -10,7 +10,7 @@ We run Vitest in browser mode using Playwright (Chromium) with `vitest-browser-v
## Run locally ## Run locally
- Install dependencies: `pnpm install` - Install dependencies: `pnpm install`
- Install Chromium: `pnpm exec playwright install chromium` - Install Chromium: `pnpm test:setup`
- Run tests: `pnpm test` - Run tests: `pnpm test`
- Coverage (V8): `pnpm test:coverage` - Coverage (V8): `pnpm test:coverage`
- HTML report: `coverage/browser/index.html` - HTML report: `coverage/browser/index.html`