oven-sh/bun

Bun test code coverage - Not returning exit code 1 when under threshold

Open

#7,367 创建于 2023年11月29日

在 GitHub 查看
 (3 评论) (1 反应) (0 负责人)Rust (4,486 fork)batch import
bugbun:testgood first issue

仓库指标

Star
 (90,348 star)
PR 合并指标
 (平均合并 1天 17小时) (30 天内合并 357 个 PR)

描述

What version of Bun is running?

1.0.13+f5bf67bd1

What platform is your computer?

Darwin 21.6.0 x86_64 i386

What steps can reproduce the bug?

bunfig.toml

[test]
coverage = true
coverageThreshold = { line = 0.9, function = 0.9 }
$ bun test 

....
--------------------------------------------------------|---------|---------|-------------------
File                                                    | % Funcs | % Lines | Uncovered Line #s
--------------------------------------------------------|---------|---------|-------------------
All files                                               |   55.20 |   69.58 |
...
--------------------------------------------------------|---------|---------|-------------------

 138 pass
 0 fail
 486 expect() calls

$ echo $?
0

What is the expected behavior?

bun test returns exit code 1

What do you see instead?

bun test returns exit code 0

Additional information

Also tried with CI=true and seen same behaviour

贡献者指南