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

大家对并行有没有思路? #122

Open
Gary-CHAO1 opened this issue Jun 29, 2022 · 1 comment
Open

大家对并行有没有思路? #122

Gary-CHAO1 opened this issue Jun 29, 2022 · 1 comment

Comments

@Gary-CHAO1
Copy link

No description provided.

@defnngj
Copy link
Collaborator

defnngj commented Jun 30, 2022

这个是 seldom 最大的一个短板了。

实现思路就是修改 运行器。 seldom/XTestRunner 有三个运行器。

  • 不生成报告,一个运行器
  • 生成HTML报告,一个运行器
  • 生成XML 报告,一个运行器

思路就是通过多线程解决,最麻烦的地方就是后两种如何把执行的结果整合到一张报告里。

seldom 其实 有尝试把耗时的 动作丢给一个函数处理,针对这个函数实现多线程。例子:

https://github.com/SeldomQA/seldom/blob/master/test/test_thread.py

这种方案最大的问题是结果不准~!

XTestRunner 已经开了任务,因为对现有运行器改动大,又复杂,我还没有比较整块的时间来实现:

SeldomQA/XTestRunner#21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants