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

【Radio】测试覆盖率提升 #723

Closed
Tracked by #739
anlyyao opened this issue May 26, 2023 · 3 comments · Fixed by #814
Closed
Tracked by #739

【Radio】测试覆盖率提升 #723

anlyyao opened this issue May 26, 2023 · 3 comments · Fixed by #814
Labels
help wanted Extra attention is needed issueshoot 代码共建平台 middle 中等问题

Comments

@anlyyao
Copy link
Collaborator

anlyyao commented May 26, 2023

目前正在推进 mobile-vue 的组件测试覆盖率提升。

任务要求

  • 行覆盖率达 80%+
  • 分支覆盖率 80%+
  • 语句覆盖率 80%+
  • 有交互的组件,需要覆盖所有场景,要求函数覆盖率 80+%

单元测试指引

mobile-vue 的单元测试指引文档

目前每个组件都拥有自己的测试用例文件,我们可以先通过npm run test:unit-coverage生成测试覆盖率报告,查看该组件的单元测试覆盖率情况,然后针对性的补充测试用例

Tips

  • Vitest 单元测试框架:文档
  • 若开发工具为 vscode ,可以安装 Vitest 插件

激励

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

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

IssueShoot

  • 预估时长: 3
  • 期望完成时间: 2023-06-02 00:00:00 +0000 UTC
  • 开发难度: 中
  • 参与人数: 1
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
@github-actions
Copy link
Contributor

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

@anlyyao anlyyao added help wanted Extra attention is needed issueshoot 代码共建平台 middle 中等问题 labels May 26, 2023
@github-actions
Copy link
Contributor

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

@palmcivet
Copy link
Collaborator

认领 Radio

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 issueshoot 代码共建平台 middle 中等问题
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants