tdesign-vue
tdesign-vue copied to clipboard
组件测试覆盖率提升
说明
本仓库中组件代码有很多与 vue next 仓库公用,大部分测试用例代码也能复用,区别在于 vue next 已经改用 Vitest 编写用例,本仓库因为 @vitejs/plugin-vue2 只兼容到 vue 2.7.x 版本,还在使用 Jest 写用例。 因此建议认领的同学同时负责 vue2 与 vue next 两个仓库中对应组件的测试用例编写任务,如果你更熟悉 Jest 可以参照 官方迁移指南 来学习如何使用 Vitest。
- 遵循 TDesign 单元测试规范 进行单测开发
- 参与贡献请在此
issue
中评论领取的组件,建议也在 vue next 仓库对应 issue 中评论,防止其他同学重复投入 - 提交 PR 前请先本地确认该组件行、函数覆盖率达80%+
组件
- [x]
button
- [x]
link
- [x]
space
布局
- [x]
grid
- [x]
layout
导航
- [x]
affix
- [x]
anchor
- [x]
breadcrumb
- [x]
dropdown
@james-curtis https://github.com/Tencent/tdesign-vue/pull/1516 - [x]
jumper
@HelKyle https://github.com/Tencent/tdesign-vue/pull/1511 - [x]
pagination
@HelKyle https://github.com/Tencent/tdesign-vue/pull/1522 - [x]
steps
- [ ]
tabs
输入
- [ ]
cascader
- [x]
checkbox
- [ ]
color-picker
- [ ]
date-picker
- [ ]
form
- [ ]
input
- [x]
input-adornment
- [x]
input-number
- [x]
radio
- [ ]
select
- [ ]
select-input
- [ ]
slider
- [ ]
switch
- [ ]
tag-input
- [x]
textarea
- [x]
transfer
- [ ]
time-picker
@uyarn - [ ]
tree-select
- [ ]
upload
数据展示
- [x]
avatar
- [x]
badge
- [x]
calendar
- [x]
card
- [x]
collapse
@isanxia https://github.com/Tencent/tdesign-vue/pull/1536 - [x]
comment
- [x]
list
- [ ]
loading
@uyarn - [x]
progress
- [x]
skeleton
- [ ]
swiper
- [ ]
table
- [x]
tag
- [ ]
tooltip
- [ ]
tree
消息提醒
- [x]
alert
- [ ]
dialog
- [ ]
drawer
- [ ]
message
- [ ]
notification
- [x]
pop-confirm
- [ ]
popup
common
tdesign-common 仓库下还有部分共享的组件代码,主要是 hooks 或 utils 方法,编写用例时也请附带完善这些代码的测试用例
认领 loading & timepicker
认领 jumper
认领 notification
认领 dropdown
认领swiper
认领 pagination
认领collapse
认领 Message, Tooltip, Popup