Skip to content

chore: activate code coverage in bun test config - #6297

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
didier-durand:bun-codecov
Dec 28, 2025
Merged

chore: activate code coverage in bun test config#6297
rekram1-node merged 1 commit into
anomalyco:devfrom
didier-durand:bun-codecov

Conversation

@didier-durand

Copy link
Copy Markdown
Contributor

Hi,
In order to be able to contribute some revelant tests: i.e. where current code coverage is low, I updated bunfig.toml to activate code coverage.

This is a sample of what I get on my machine when running the tests included in repo:

----------------------------------------------------------------------------------------------------------|---------|---------|-------------------
File | % Funcs | % Lines | Uncovered Line #s
----------------------------------------------------------------------------------------------------------|---------|---------|-------------------
All files | 45.38 | 52.40 |
...
...
...
packages/opencode/src/provider/sdk/openai-compatible/src/responses/openai-responses-prepare-tools.ts | 0.00 | 3.57 | 13-174 packages/opencode/src/provider/sdk/openai-compatible/src/responses/tool/code-interpreter.ts | 0.00 | 91.89 | 84-86 packages/opencode/src/provider/sdk/openai-compatible/src/responses/tool/file-search.ts | 0.00 | 100.00 | packages/opencode/src/provider/sdk/openai-compatible/src/responses/tool/image-generation.ts | 0.00 | 91.43 | 111-113
packages/opencode/src/provider/sdk/openai-compatible/src/responses/tool/local-shell.ts | 100.00 | 100.00 | packages/opencode/src/provider/sdk/openai-compatible/src/responses/tool/web-search-preview.ts | 100.00 | 100.00 | packages/opencode/src/provider/sdk/openai-compatible/src/responses/tool/web-search.ts | 0.00 | 93.62 | 99-101
...
...
...
783 expect() calls
Ran 385 tests across 33 files. [33.23s]

Cheers,
Didier

@rekram1-noderekram1-node changed the title Bun config: activate code coveragechore: activate code coverage in bun test configDec 28, 2025
@rekram1-node
rekram1-node merged this pull request into anomalyco:devDec 28, 2025
2 checks passed
hk9890 pushed a commit to hk9890/opencode that referenced this pull request Jan 1, 2026
triklozoid pushed a commit to triklozoid/opencode that referenced this pull request Feb 2, 2026
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
Sign up for freeto 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.

2 participants

@didier-durand@rekram1-node