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

Governance: Add e2e test #460

Open
elliotxx opened this issue May 24, 2024 · 6 comments
Open

Governance: Add e2e test #460

elliotxx opened this issue May 24, 2024 · 6 comments
Assignees
Labels
governance hacktoberfest https://hacktoberfest.com/ help wanted Extra attention is needed testing
Milestone

Comments

@elliotxx
Copy link
Collaborator

elliotxx commented May 24, 2024

What would you like to be added?

Need to be able to automate end-to-end testing of functions exposed on dashboard and integrate into github action.

You can consider using selenium or playwright framework.

Why is this needed?

Automated end-to-end testing can reduce the cost of manual testing and improve the stability of the project in the long run.

@n3A87
Copy link

n3A87 commented Jun 23, 2024

I'd like to try this issue.

@elliotxx
Copy link
Collaborator Author

I'd like to try this issue.

Welcome 👋, I have assigned this issue to you. Feel free to ask me any questions you encounter.

@elliotxx elliotxx added this to the v0.5.0 milestone Jul 9, 2024
@elliotxx
Copy link
Collaborator Author

@n3A87 Hi 👋 Is there any problem?

@n3A87
Copy link

n3A87 commented Jul 18, 2024

@elliotxx 我对这个issue的理解是,用playwright或者selenium测试框架编写脚本对karpor进行WebUI自动化测试。我理解的是否有偏差嘛?编程语言是否有限制?我计划是用python+playwright~但是最近两个月有点忙😭9月份才有充足的时间搞,7、8月空闲的时候会搞。

@elliotxx
Copy link
Collaborator Author

@n3A87 思路没问题的,这两个框架都是编写 web 端 e2e 测试的常用框架,选哪个都行。原期望是用项目主要语言 go 和 typescript 编写测试,不过 python 如果集成门槛不高的话,也可以。时间上看你方便,感谢参与社区 ❤️

@elliotxx
Copy link
Collaborator Author

@n3A87 实施的时候可以先在开发分支写一个 e2e 最小原型,提 pr 提前 review + 验证思路可行性(最好不要提超大 pr),实现上可以参考 gitea 的 e2e,它是 typescript+playwright 组合:https://github.com/go-gitea/gitea/blob/main/tests/e2e/example.test.e2e.ts

@elliotxx elliotxx modified the milestones: v0.5.0, v0.6.0 Jul 24, 2024
@elliotxx elliotxx added the hacktoberfest https://hacktoberfest.com/ label Sep 24, 2024
@elliotxx elliotxx modified the milestones: v0.6.0, v0.7.0 Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
governance hacktoberfest https://hacktoberfest.com/ help wanted Extra attention is needed testing
Projects
None yet
Development

No branches or pull requests

2 participants