tdesign-vue-next icon indicating copy to clipboard operation
tdesign-vue-next copied to clipboard

[WIP] 单元测试提升计划

Open PengYYYYY opened this issue 2 years ago • 14 comments

说明

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

  1. 遵循 TDesign 单元测试规范 进行单测开发,文档持续更新
  2. 参与贡献请在此 issue 中评论领取的组件
  3. 领取后请在两周内提交单元测试代码,单测过程中发现组件问题可以提 issue 或在 PR 中修复
  4. 提交 PR 前请先本地确认该组件行、函数覆盖率达80%+

组件

布局

  • [x] grid
  • [x] layout

导航

  • [x] affix - #775
  • [ ] anchor
  • [x] breadcrumb -@xxxlj #1459
  • [ ] dropdown - @Isabella327 #1708
  • [x] pagination - @HelKyle #1690
  • [x] steps
  • [ ] tabs

输入

  • [ ] cascader
  • [ ] checkbox
  • [ ] color-picker
  • [ ] date-picker
  • [ ] form
  • [ ] input
  • [ ] input-number
  • [x] radio
  • [ ] select
  • [ ] select-input
  • [x] slider - @ChrisLee0211 #1141
  • [ ] switch- @ChrisLee0211
  • [ ] tag-input
  • [x] textarea
  • [x] transfer
  • [ ] time-picker
  • [ ] tree-select
  • [ ] upload

数据展示

  • [x] avatar
  • [x] badge
  • [x] calendar
  • [x] card
  • [ ] collapse - @isanxia
  • [x] comment
  • [x] list
  • [ ] loading
  • [x] progress
  • [x] skeleton
  • [ ] swiper - @duenyang
  • [ ] table
  • [x] tag
  • [ ] tooltip
  • [ ] tree

消息提醒

  • [ ] alert
  • [ ] dialog
  • [ ] drawer
  • [ ] message
  • [ ] notification - @jiazengp
  • [ ] pop-confirm- @Dlame
  • [ ] popup

PengYYYYY avatar May 13 '22 09:05 PengYYYYY

认领slider

ChrisLee0211 avatar May 13 '22 09:05 ChrisLee0211

认领 affix

ontheroad1992 avatar May 14 '22 16:05 ontheroad1992

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

github-actions[bot] avatar Jun 16 '22 09:06 github-actions[bot]

认领breadcrumb

xxxlj avatar Aug 18 '22 07:08 xxxlj

认领grid, layout,checkbox,radio, switch, input,textarea, avatar, badge, card,progress, skeleton, tag

LadyChatterleyLover avatar Sep 06 '22 12:09 LadyChatterleyLover

认领 jumper

HelKyle avatar Sep 13 '22 06:09 HelKyle

认领 notification @pengYYYYY

jiazengp avatar Sep 15 '22 02:09 jiazengp

认领dropdown

Isabella327 avatar Sep 15 '22 08:09 Isabella327

认领swiper

duenyang avatar Sep 15 '22 09:09 duenyang

认领switch

ChrisLee0211 avatar Sep 15 '22 13:09 ChrisLee0211

认领 pagination

HelKyle avatar Sep 17 '22 10:09 HelKyle

认领collapse

isanxia avatar Sep 19 '22 09:09 isanxia

认领pop-confirm

Dlame avatar Sep 22 '22 09:09 Dlame

认领 form

k1nz avatar Sep 26 '22 07:09 k1nz

认领comment,list,alert,steps

LadyChatterleyLover avatar Sep 29 '22 14:09 LadyChatterleyLover

认领loading

LadyChatterleyLover avatar Sep 30 '22 07:09 LadyChatterleyLover

认领input-number,dialog,drawer,

LadyChatterleyLover avatar Oct 06 '22 14:10 LadyChatterleyLover

认领 menu

LeeJim avatar Oct 09 '22 06:10 LeeJim

认领 Message, Tooltip, Popup

byq1213 avatar Oct 13 '22 06:10 byq1213

认领transfer

LadyChatterleyLover avatar Oct 14 '22 07:10 LadyChatterleyLover

认领tag-input

LadyChatterleyLover avatar Oct 14 '22 07:10 LadyChatterleyLover

认领 Message, Tooltip, Popup

popup 分配给你了,其他两个已经处理完了

PengYYYYY avatar Oct 14 '22 15:10 PengYYYYY

认领jumper,space,icon,image

LadyChatterleyLover avatar Oct 28 '22 06:10 LadyChatterleyLover

认领 select-input

whitexie avatar Jan 15 '23 01:01 whitexie

认领 rate

whitexie avatar Feb 02 '23 09:02 whitexie