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

📌 组件测试覆盖率提升 #1418

Closed
45 of 63 tasks
xiaosansiji opened this issue Aug 30, 2022 · 10 comments
Closed
45 of 63 tasks

📌 组件测试覆盖率提升 #1418

xiaosansiji opened this issue Aug 30, 2022 · 10 comments

Comments

@xiaosansiji
Copy link
Collaborator

xiaosansiji commented Aug 30, 2022

说明

本仓库中组件代码有很多与 vue next 仓库公用,大部分测试用例代码也能复用,区别在于 vue next 已经改用 Vitest 编写用例,本仓库因为 @vitejs/plugin-vue2 只兼容到 vue 2.7.x 版本,还在使用 Jest 写用例。
因此建议认领的同学同时负责 vue2 与 vue next 两个仓库中对应组件的测试用例编写任务,如果你更熟悉 Jest 可以参照 官方迁移指南 来学习如何使用 Vitest。

  1. 遵循 TDesign 单元测试规范 进行单测开发
  2. 参与贡献请在此 issue 中评论领取的组件,建议也在 vue next 仓库对应 issue 中评论,防止其他同学重复投入
  3. 提交 PR 前请先本地确认该组件行、函数覆盖率达80%+

组件

布局

导航

输入

数据展示

消息提醒

common

tdesign-common 仓库下还有部分共享的组件代码,主要是 hooks 或 utils 方法,编写用例时也请附带完善这些代码的测试用例

@Tencent Tencent deleted a comment from github-actions bot Aug 30, 2022
@xiaosansiji xiaosansiji pinned this issue Aug 30, 2022
@uyarn
Copy link
Collaborator

uyarn commented Aug 31, 2022

认领 loading & timepicker

@HelKyle
Copy link
Contributor

HelKyle commented Sep 13, 2022

认领 jumper

@jiazengp
Copy link
Contributor

认领 notification

@eric-gitta-moore
Copy link
Contributor

认领 dropdown

@sechi747
Copy link
Contributor

sechi747 commented Sep 15, 2022

认领 switch, tooltip

看到vue-next仓库有人领取 switch 组件了,不知道是否已经完成了?

@duenyang
Copy link

认领swiper

@xiaosansiji
Copy link
Collaborator Author

看到vue-next仓库有人领取 switch 组件了,不知道是否已经完成了?

没提交 PR,你可以看看一并搞了

@HelKyle
Copy link
Contributor

HelKyle commented Sep 17, 2022

认领 pagination

@isanxia
Copy link
Contributor

isanxia commented Sep 20, 2022

认领collapse

@byq1213
Copy link
Contributor

byq1213 commented Oct 13, 2022

认领 Message, Tooltip, Popup

@uyarn uyarn changed the title 组件测试覆盖率提升 📌 组件测试覆盖率提升 Oct 26, 2022
@xiaosansiji xiaosansiji unpinned this issue Dec 22, 2022
@uyarn uyarn closed this as completed Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants