【发布时间】:2011-11-13 19:43:07
【问题描述】:
如何在同一网络上通过 SSH 连接的双核机器上运行并行测试?
https://github.com/grosser/parallel_tests 对本地工作人员运行良好,但无法在多台机器上运行
https://github.com/qxjit/deep-test - 我运行它时没有运气,示例中有一行像
t.distributed_hosts
引发错误
对于 Hydra,我遇到了一个永远等待 ssh 工作人员的问题
我尝试了 Buffet 的 alpha 版本,创建了一个测试 repo 并运行它,但没有成功
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
我只想运行标准单元/集成/功能测试
根本没有花哨的东西。
【问题讨论】:
-
构建您自己的并行/分布式测试设置可能是一个相当大的挑战。我们非常幸运地使用了一个名为 TDDium (tddium.com) 的服务来为您管理这个,使用像 Heroku 这样的 git 远程服务器来接受批量运行的代码。我强烈推荐他们。
-
与 Winfield 一样徒劳无功,我们使用 CircleCi (circleci.com) 并行化我们的测试并取得了巨大成功。
-
为什么parallel_tests不适合多机?深度测试会抛出什么错误?
-
不知道,两年多了……
-
您可以只运行自己的 Travis 或 Jenkins 设置并在 push 上运行,还是您想要 Guard/Autotest 风格的远程测试?
标签: ruby-on-rails unit-testing testing parallel-processing