diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 39c0cc7..6ed9871 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -21,3 +21,19 @@ jobs:
- run: rm -f package-lock.json && npm install
- run: npm run lint
- run: npm test
+
+ coverage:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ cache: npm
+ - run: rm -f package-lock.json && npm install
+ - run: npm run test:coverage
+ - uses: codecov/codecov-action@v5
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: ./coverage/lcov.info
+ fail_ci_if_error: false
diff --git a/README.md b/README.md
index f872a23..b8735c0 100644
--- a/README.md
+++ b/README.md
@@ -4,10 +4,12 @@ The lightweight multi-agent orchestration engine for TypeScript. Three runtime d
CrewAI is Python. LangGraph makes you draw the graph by hand. `open-multi-agent` is the `npm install` you drop into an existing Node.js backend when you need a team of agents to work on a goal together. Nothing more, nothing less.
+[](https://www.npmjs.com/package/@jackchen_me/open-multi-agent)
[](https://github.com/JackChen-me/open-multi-agent/stargazers)
[](./LICENSE)
[](https://www.typescriptlang.org/)
-[](https://github.com/JackChen-me/open-multi-agent/actions)
+[](https://bundlephobia.com/package/@jackchen_me/open-multi-agent)
+[](https://codecov.io/gh/JackChen-me/open-multi-agent)
**English** | [中文](./README_zh.md)
@@ -456,7 +458,7 @@ Issues, feature requests, and PRs are welcome. Some areas where contributions wo
## Contributors
-
+
## Star History
diff --git a/README_zh.md b/README_zh.md
index 8d26d5c..32690f1 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -4,10 +4,12 @@ TypeScript 里的轻量多智能体编排引擎。3 个运行时依赖,零配
CrewAI 是 Python。LangGraph 要你自己画图。`open-multi-agent` 是你现有 Node.js 后端里 `npm install` 一下就能用的那一层:一支 agent 团队围绕一个目标协作,就这些。
+[](https://www.npmjs.com/package/@jackchen_me/open-multi-agent)
[](https://github.com/JackChen-me/open-multi-agent/stargazers)
[](./LICENSE)
[](https://www.typescriptlang.org/)
-[](https://github.com/JackChen-me/open-multi-agent/actions)
+[](https://bundlephobia.com/package/@jackchen_me/open-multi-agent)
+[](https://codecov.io/gh/JackChen-me/open-multi-agent)
[English](./README.md) | **中文**
@@ -451,7 +453,7 @@ Issue、feature request、PR 都欢迎。特别想要:
## 贡献者
-
+
## Star 趋势
diff --git a/package.json b/package.json
index 6155283..ae96f59 100644
--- a/package.json
+++ b/package.json
@@ -29,6 +29,7 @@
"dev": "tsc --watch",
"test": "vitest run",
"test:watch": "vitest",
+ "test:coverage": "vitest run --coverage",
"lint": "tsc --noEmit",
"test:e2e": "RUN_E2E=1 vitest run tests/e2e/",
"prepublishOnly": "npm run build"
diff --git a/vitest.config.ts b/vitest.config.ts
index bbc79ff..d6c2252 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -4,6 +4,7 @@ export default defineConfig({
test: {
coverage: {
include: ['src/**'],
+ reporter: ['text', 'html', 'lcov', 'json'],
},
exclude: [
'**/node_modules/**',