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

test: add tests for client #1960

Merged
merged 59 commits into from
Jun 7, 2023
Merged

test: add tests for client #1960

merged 59 commits into from
Jun 7, 2023

Conversation

zhangzhonghe
Copy link
Contributor

@zhangzhonghe zhangzhonghe commented May 31, 2023

Description (需求描述)

  • 每一个前端组件都应该有测试用例,以提高功能稳定性
  • 每一个 hook 都应该有测试用例

Motivation (需求背景)

  • 前端功能不稳定,测试成本及代码复现成本高昂
  • 添加功能或修改代码时心里没有底,没有一个可靠的反馈机制
  • 缓解人工测试压力,自动化相关流程

Key changes (关键改动)

  • Frontend (前端)
    • 无功能性改动
    • 仅是添加测试代码
  • Backend (后端)
    • 无改动

Test plan (测试计划)

Suggestions (测试建议)

  • 理论上无需人工测试

Underlying risk (潜在风险)

  • 理论上无任何风险

Showcase (结果展示)

进行中。。。

TODO

  • 修复 Vitest 运行报错
  • 迁移 nocobase-next 仓库测试代码
  • 补充剩余组件测试用例
  • 补充 hooks 测试用例

@zhangzhonghe zhangzhonghe force-pushed the zzh/test branch 5 times, most recently from 944ca7f to 87281d3 Compare June 6, 2023 05:47
@hongboji hongboji added the solved label Jun 6, 2023
@chenos
Copy link
Contributor

chenos commented Jun 6, 2023

Link T-288

@height
Copy link

height bot commented Jun 6, 2023

This pull request has been linked to 1 task:

💡Tip: Add "Close T-288" to the pull request title or description, to a commit message, or in a comment to mark this task as "Done" when the pull request is merged.

packages/core/test/src/index.ts Outdated Show resolved Hide resolved
@zhangzhonghe zhangzhonghe merged commit 4783888 into main Jun 7, 2023
4 checks passed
@zhangzhonghe zhangzhonghe deleted the zzh/test branch June 7, 2023 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants