Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

单测行覆盖率存在波动 #3083

Open
eiinu opened this issue May 17, 2024 · 0 comments
Open

单测行覆盖率存在波动 #3083

eiinu opened this issue May 17, 2024 · 0 comments
Labels
improvement 一些可以优化的地方 PR Welcome 已确认存在的问题,或者计划实现的功能,欢迎社区 PR

Comments

@eiinu
Copy link
Member

eiinu commented May 17, 2024

NutUI 包名

@nutui/nutui

NutUI 版本号

4.3.8

平台

h5

重现链接

https://github.com/jdf2e/nutui

重现步骤

CI 执行单元测试 pnpm test:c

期望的结果是什么?

对于相同的代码,多次执行单元测试,生成的单测覆盖率报告应该完全一致。

实际的结果是什么?

一些组件的异步代码(setTimeout、raf 等),有时能覆盖,有时不能,导致整体单测行覆盖率忽高忽低地波动。

环境信息

No response

其他补充信息

https://app.codecov.io/gh/jdf2e/nutui

@eiinu eiinu added improvement 一些可以优化的地方 PR Welcome 已确认存在的问题,或者计划实现的功能,欢迎社区 PR labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement 一些可以优化的地方 PR Welcome 已确认存在的问题,或者计划实现的功能,欢迎社区 PR
Projects
None yet
Development

No branches or pull requests

1 participant