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

📌 测试覆盖提升 #1280

Open
39 of 61 tasks
honkinglin opened this issue Aug 12, 2022 · 25 comments
Open
39 of 61 tasks

📌 测试覆盖提升 #1280

honkinglin opened this issue Aug 12, 2022 · 25 comments
Labels
🙏🏻 help wanted Extra attention is needed in progress in progress

Comments

@honkinglin
Copy link
Collaborator

honkinglin commented Aug 12, 2022

目前在推进 React 组件库的正式版发布,组件 Api 也进入相对稳定阶段,为保证组件质量及减轻后续维护成本需完善测试覆盖率,尽可能的让每个 Api 都有单元测试保障。

Tips

  • 如果你更熟悉 Jest 可以参照 官方迁移指南 来学习如何使用 Vitest。
  • 使用 vscode 的话,可以安装 Vitest 插件
  • 遵循 TDesign 单元测试规范 进行单测开发
  • 参与贡献请在此 issue 中评论领取的组件,建议也在 vue next 仓库对应 issue 中评论,防止其他同学重复投入
  • 提交 PR 前请先本地确认该组件行、函数覆盖率达80%+

认领方式:直接评论 “我来负责xxx组件” 即可。

⚠️ 重要:尽量开发一些有难度的、带边界校验的组件测试用例,以复杂组件为主。因为后面 Vue2/Vue3/React 会持续会统一自动生成测试用例。(统一通过 tdesign-api 输出测试用例,如果对这个有兴趣的可以联系 @chaishi

具体进展

基础

布局

导航

输入

数据展示

消息提醒

@honkinglin honkinglin added the 🙏🏻 help wanted Extra attention is needed label Aug 12, 2022
@honkinglin honkinglin pinned this issue Aug 12, 2022
@github-actions
Copy link
Contributor

任何人都可以处理此问题。
请务必在您的 pull request 中引用此问题。
感谢你的贡献! ✨

@uyarn
Copy link
Collaborator

uyarn commented Aug 12, 2022

认领 timepickerloadingselect

@honkinglin honkinglin changed the title [测试] 单元测试提升计划 🚥 测试覆盖 Aug 12, 2022
@PBK-B
Copy link
Contributor

PBK-B commented Aug 15, 2022

认领 slider

@insekkei
Copy link
Collaborator

我来负责 steps 组件

insekkei added a commit to insekkei/tdesign-react that referenced this issue Aug 17, 2022
@ZWkang
Copy link
Collaborator

ZWkang commented Aug 17, 2022

@HQ-Lin 认领 avatar + badge 周末做吧

@zFitness
Copy link
Contributor

link 组件测试覆盖还缺吗

@zFitness
Copy link
Contributor

@HQ-Lin link 我来吧,毕竟 link 组件是我写的

@Skyenought
Copy link
Contributor

我想认领 radio

@sommouns
Copy link
Contributor

认领Link

@sommouns
Copy link
Contributor

认领Link

#1339

honkinglin added a commit that referenced this issue Aug 22, 2022
@github-actions github-actions bot mentioned this issue Aug 22, 2022
16 tasks
@Isabella327
Copy link
Contributor

dropdown组件认领 #1352

@PBK-B
Copy link
Contributor

PBK-B commented Aug 23, 2022

认领 textarea

PBK-B added a commit to PBK-B/tdesign-react that referenced this issue Aug 23, 2022
honkinglin added a commit that referenced this issue Aug 24, 2022
test(textarea): add textarea related tests #1280
@HelKyle
Copy link
Contributor

HelKyle commented Aug 24, 2022

认领 comment

@PBK-B
Copy link
Contributor

PBK-B commented Aug 24, 2022

认领 collapse

PBK-B added a commit to PBK-B/tdesign-react that referenced this issue Aug 24, 2022
@Tencent Tencent deleted a comment from github-actions bot Jan 10, 2023
@Tencent Tencent deleted a comment from github-actions bot Jan 10, 2023
MrWeilian added a commit to MrWeilian/tdesign-react that referenced this issue Jan 10, 2023
MrWeilian added a commit to MrWeilian/tdesign-react that referenced this issue Jan 10, 2023
MrWeilian added a commit to MrWeilian/tdesign-react that referenced this issue Jan 10, 2023
MrWeilian added a commit to MrWeilian/tdesign-react that referenced this issue Jan 11, 2023
@MrWeilian
Copy link
Contributor

我来负责 cascader 组件

MrWeilian added a commit to MrWeilian/tdesign-react that referenced this issue Jan 15, 2023
MrWeilian added a commit to MrWeilian/tdesign-react that referenced this issue Jan 16, 2023
@Tencent Tencent deleted a comment from github-actions bot Jan 16, 2023
MrWeilian added a commit to MrWeilian/tdesign-react that referenced this issue Jan 16, 2023
MrWeilian added a commit to MrWeilian/tdesign-react that referenced this issue Jan 17, 2023
@MrWeilian
Copy link
Contributor

我来负责 color-picker 组件

MrWeilian added a commit to MrWeilian/tdesign-react that referenced this issue Jan 17, 2023
uyarn pushed a commit that referenced this issue Jan 21, 2023
* test(color-picker): add test for color-picker alpha

#1280

* test(color-picker): add test for color-picker-panel

* test(color-picker): add test for color-picker
FireBushtree added a commit to FireBushtree/tdesign-react that referenced this issue Jan 25, 2023
honkinglin pushed a commit that referenced this issue Feb 1, 2023
* test(cascader): add test for cascader

* test(cascader): add test for cascader-panel

#1280

* test(cascader): add test for cascader-core

#1280
FireBushtree added a commit to FireBushtree/tdesign-react that referenced this issue Feb 3, 2023
@github-actions github-actions bot mentioned this issue Feb 8, 2023
16 tasks
@honkinglin honkinglin unpinned this issue Apr 14, 2023
@Roxannej
Copy link

Roxannej commented Nov 6, 2023

是不是没有更新这个测试覆盖的完成度,我在develop分支,看上面写card需要补充测试的部分,但是我clone代码,card里面有test的文件,是需要更完善还是card组件的test已经完成了?

@uyarn
Copy link
Collaborator

uyarn commented Dec 14, 2023

是不是没有更新这个测试覆盖的完成度,我在develop分支,看上面写card需要补充测试的部分,但是我clone代码,card里面有test的文件,是需要更完善还是card组件的test已经完成了?

可以继续完善 直接提交PR就可以

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙏🏻 help wanted Extra attention is needed in progress in progress
Projects
None yet
Development

No branches or pull requests