Tencent / tdesign-mobile-vue

A Vue3.x Mobile UI components lib for TDesign.
https://tdesign.tencent.com/mobile-vue
MIT License
249 stars 143 forks source link

🚥 mobile-vue 测试覆盖率提升 #271

Closed anlyyao closed 1 year ago

anlyyao commented 1 year ago

目前正在推进 mobile-vue 的测试覆盖,需要覆盖基本的场景。具体要求:

Tips

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

认领任务前,建议先查看 mobile-vue 的单元测试指引文档

激励

参与共建的开发者,将可以获得 TDesign 周边(贴纸、鼠标垫、工卡套等);

成为核心贡献者,将会拥有 TDesign 专属头像。

具体进展

基础

布局

导航

输入

数据展示

消息提醒

每周进展

10.29 - 11.4

10.22- 10.28

10.15- 10.21

10.8- 10.14

9.24 - 9.30

9.17 - 9.23

9.10 - 9.16

9.3 - 9.9

8.27 - 9.2

8.20 - 8.26

8.13 - 8.19

github-actions[bot] commented 1 year ago

👋 @anlyyao,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

LadyChatterleyLover commented 1 year ago

我来负责 Button, Icon, Cell, Divider, Avatar, Badge, Tag组件

LadyChatterleyLover commented 1 year ago

我来负责 List, Result, Skeleton, Input, Checkbox,Radio, Rate,Search, Textarea, Grid

anlyyao commented 1 year ago

@LadyChatterleyLover 我们统一使用 .jsx 来编写组件测试用例, 完成后需要重新生成组件徽标,然后单独提PR,辛苦大佬修改一下文件后缀&&更新徽标~~ 具体查阅mobile-vue 的单元测试指引文档

LadyChatterleyLover commented 1 year ago

好的。

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: Y. @.> 发送时间: 2022年8月14日 23:34 收件人: Tencent/tdesign-mobile-vue @.> 抄送: luopei @.>, Mention @.> 主题: Re: [Tencent/tdesign-mobile-vue] �� 测试覆盖 (Issue #271)

@LadyChatterleyLover 我们统一使用 .jsx 来编写组件测试用例, 完成后需要重新生成组件徽标,然后单独提PR,辛苦大佬修改一下文件后缀&&更新徽标~~ 具体查阅mobile-vue 的单元测试指引文档

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

LadyChatterleyLover commented 1 year ago

@anlyyao 你好,我输入npm run test:unit-coverage,并没有生产index.html文件,请问是什么原因呢?

anlyyao commented 1 year ago

@LadyChatterleyLover 我修改了测试覆盖率报告的输出位置到/test/unit/coverage/index.html, 但目前相关pr暂未合并,所以当前的测试覆盖率报告路径在 项目根目录下, ./coverage~~ ,你可以先查看。 稍后pr会合并,你这边更新后,路径就会在/test/unit 目录下了

LadyChatterleyLover commented 1 year ago

好的哈,谢谢 。

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: Y. @.> 发送时间: 2022年8月15日 18:21 收件人: Tencent/tdesign-mobile-vue @.> 抄送: luopei @.>, Mention @.> 主题: Re: [Tencent/tdesign-mobile-vue] �� 测试覆盖 (Issue #271)

@LadyChatterleyLover 我修改了测试覆盖率报告的输出位置到/test/unit/coverage/index.html, 但目前相关pr暂未合并,所以当前的测试覆盖率报告路径在 项目根目录下, ./coverage~~ ,你可以先查看。 稍后pr会合并,你这边更新后,路径就会在/test/unit 目录下了

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

anlyyao commented 1 year ago

认领 Stepper Switch Popup Drawer

isanxia commented 1 year ago

认领Collapse

LadyChatterleyLover commented 1 year ago

@anlyyao 好多组件都不能获取元素的样式,请问怎么解决呢?

LadyChatterleyLover commented 1 year ago

认领Image,Collapse,Slider,

anlyyao commented 1 year ago

@LadyChatterleyLover Collapse 已被认领。 认领前关注一下评论,避免重复认领哦~

LadyChatterleyLover commented 1 year ago

好的

------------------ 原始邮件 ------------------ 发件人: "Tencent/tdesign-mobile-vue" @.>; 发送时间: 2022年8月19日(星期五) 中午1:13 @.>; @.**@.>; 主题: Re: [Tencent/tdesign-mobile-vue] 🚥 测试覆盖 (Issue #271)

@LadyChatterleyLover Collapse 已被认领。 认领前关注一下评论,避免重复认领哦~

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

LadyChatterleyLover commented 1 year ago

认领Tabs, Steps, NavBar

anlyyao commented 1 year ago

@anlyyao 好多组件都不能获取元素的样式,请问怎么解决呢? 提一下具体需求?? 然后建议一个组件一个PR哦, 不然积累太多,CR有些辛苦hhh~~😂

LadyChatterleyLover commented 1 year ago

@anlyyao 比如我想测试rate组件的color属性,但是获取不了对应元素的style属性,用style和getComputedStyle都无法获取

LadyChatterleyLover commented 1 year ago

想获取rete的size也获取不到 。

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: Y. @.> 发送时间: 2022年8月22日 20:04 收件人: Tencent/tdesign-mobile-vue @.> 抄送: luopei @.>, Mention @.> 主题: Re: [Tencent/tdesign-mobile-vue] �� mobile-vue 测试覆盖率提升 (Issue #271)

@LadyChatterleyLover rate的color属性在0.17.0中移除了, 为了后面的主题配置考虑~

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

TingShine commented 1 year ago

我来负责CountDown

anlyyao commented 1 year ago

@LadyChatterleyLover 我昨天串框架了😢,mobile-vue的 rate 组件,color属性还在。我看了一下 icon 渲染出来都是 svg, 不太好写测试用例,icon的可以暂时跳过~

it('color',` () => { const wrapper = mount(() => <Rate size={'16'} color={['rgb(0, 0, 0 )','rgb(153, 153, 153)']} />); const icon = wrapper.findComponent(StarFilledIcon); expect(icon).toMatchSnapshot(); expect(getComputedStyle(icon.element, null).color).toBe('rgb(153, 153, 153)') });

LadyChatterleyLover commented 1 year ago

好的,谢谢,我试一下

------------------ 原始邮件 ------------------ 发件人: "Tencent/tdesign-mobile-vue" @.>; 发送时间: 2022年8月23日(星期二) 上午9:19 @.>; @.**@.>; 主题: Re: [Tencent/tdesign-mobile-vue] 🚥 mobile-vue 测试覆盖率提升 (Issue #271)

@LadyChatterleyLover 我昨天串框架了😢,mobile-vue的 rate 组件,color属性还在。我看了一下 icon 渲染出来都是 svg, 不太好写测试用例,icon的可以暂时跳过~

it('color',` () => { const wrapper = mount(() => <Rate size={'16'} color={['rgb(0, 0, 0 )','rgb(153, 153, 153)']} />); const icon = wrapper.findComponent(StarFilledIcon); expect(icon).toMatchSnapshot(); expect(getComputedStyle(icon.element, null).color).toBe('rgb(153, 153, 153)') });

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

palmcivet commented 1 year ago

我来认领 Upload

TingShine commented 1 year ago

认领notice-bar

zhangpaopao0609 commented 1 year ago

认领 message loading

HelKyle commented 1 year ago

认领 tabbar

HelKyle commented 1 year ago

认领 ActionSheet

palmcivet commented 1 year ago

认领 image-viewer

elvinn commented 1 year ago

认领 Picker

HelKyle commented 1 year ago

认领 Overlay,Progress,Backtop,Toast

palmcivet commented 1 year ago

认领 PullDownRefresh

4xii commented 1 year ago

认领Sticky

anlyyao commented 1 year ago

认领 Dialog swipeCell

anlyyao commented 1 year ago

@LadyChatterleyLover slider 的单元测试 我这边来跟进了哈~

anlyyao commented 1 year ago

认领 slider tabs dropdown-menu steps

LadyChatterleyLover commented 1 year ago

 好

------------------ 原始邮件 ------------------ 发件人: "Tencent/tdesign-mobile-vue" @.>; 发送时间: 2022年9月20日(星期二) 下午4:13 @.>; @.**@.>; 主题: Re: [Tencent/tdesign-mobile-vue] 🚥 mobile-vue 测试覆盖率提升 (Issue #271)

@LadyChatterleyLover slider 的单元测试 我这边来跟进了哈~

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

anlyyao commented 1 year ago

@LadyChatterleyLover 你另一个pr提出了一些问题~

要是有时间 辛苦在跟进一波

LadyChatterleyLover commented 1 year ago

好,过两天哈,这段时间有点忙,

------------------ 原始邮件 ------------------ 发件人: "Tencent/tdesign-mobile-vue" @.>; 发送时间: 2022年9月20日(星期二) 下午4:22 @.>; @.**@.>; 主题: Re: [Tencent/tdesign-mobile-vue] 🚥 mobile-vue 测试覆盖率提升 (Issue #271)

@LadyChatterleyLover 你另一个pr提出了一些问题~

要是有时间 辛苦在跟进一波

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

byq1213 commented 1 year ago

认领 list

byq1213 commented 1 year ago

我来负责check-box组件

anlyyao commented 1 year ago

@LadyChatterleyLover 同学 考虑到你最近比较忙,我这边也要加快一下进度就不等你了,我会直接基于你的分支进行修改和补充一些测试用例~

LadyChatterleyLover commented 1 year ago

亲,过两天我把每个组件的测试单独抽出来提pr哈,之前那个到时候我把它关了

------------------ 原始邮件 ------------------ 发件人: "Tencent/tdesign-mobile-vue" @.>; 发送时间: 2022年9月20日(星期二) 下午4:22 @.>; @.**@.>; 主题: Re: [Tencent/tdesign-mobile-vue] 🚥 mobile-vue 测试覆盖率提升 (Issue #271)

@LadyChatterleyLover 你另一个pr提出了一些问题~

要是有时间 辛苦在跟进一波

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

LadyChatterleyLover commented 1 year ago

好的,那就麻烦了哈,

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: Y. @.> 发送时间: 2022年9月28日 22:30 收件人: Tencent/tdesign-mobile-vue @.> 抄送: luopei @.>, Mention @.> 主题: Re: [Tencent/tdesign-mobile-vue] �� mobile-vue 测试覆盖率提升 (Issue #271)

@LadyChatterleyLover 同学 考虑到你最近比较忙,我这边也要加快一下进度就不等你了,我会直接基于你的分支进行修改和补充一些测试用例~

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

yuanmeda commented 1 year ago

认领 calendar、cascader 单元测试

anlyyao commented 1 year ago

@isanxia hello 同学, Tdesign这边正在统计贡献者信息发放邮件和周边,由于您没有预留邮箱,我们运营同学联系不上您,方便告知下Email吗?

anlyyao commented 1 year ago

感谢大家的贡献,目前 测试覆盖率工作 已圆满完成 🎉🎉

后续我将统计测试覆盖率数据以及统一生成徽标,官网预计11.14更新。

PS:TDesign周边会尽快发放到各问手上,可以自行关注下Github上预留的📮!!

anlyyao commented 1 year ago

@isanxia 同学 一直没等到您回复, 我这边先关闭issue了。 等你回复后,我们在重新补发周边给你~~

engvuchen commented 11 months ago

认领 footer