百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
Z

zeus-parallel_tests

> 编程语言
开源

Zeus::ParallelTests Zeus 是一个用于通过预加载 Rails 应用来加快测试的工具。 paralleltests 还通过运行并行测试来加快测试速度。

195 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Zeus::ParallelTests Zeus 是一个用于通过预加载 Rails 应用来加快测试的工具。 paralleltests 还通过运行并行测试来加快测试速度。

Zeus::ParallelTests

Zeus is a tool for speeding up your tests by preloading a Rails app. parallel_tests also speeds up your tests by running them, well, in parallel. Two good gems, so why not to use them together? Let's make our CPUs sweat!

Show me the numbers!

RSpec

$ time rspec spec

...

Finished in 1 minute 8.34 seconds
916 examples, 0 failures

real    1m21.480s
user    1m4.805s
sys     0m4.516s

parallel_tests

$ time rake parallel:spec[8]
Using recorded test runtime
8 processes for 141 specs, ~ 17 specs per process

...

916 examples, 0 failures

Took 46.626499 seconds

real    0m55.790s
user    4m3.065s
sys     0m32.160s

Zeus+parallel_tests

$ time zeus rake parallel:spec[8]
Developer helpers loaded
Using recorded test runtime
8 processes for 141 specs, ~ 17 specs per process

...

916 examples, 0 failures

Took 26.610327 seconds

real    0m28.514s
user    0m0.732s
sys     0m0.061s

Ready to go?

Installation

RailsCast episode #413 Fast Tests

Add this line to your application's Gemfile:

gem 'zeus-parallel_tests'

And then execute:

$ bundle

You need also to initialize your project with custom Zeus plan:

$ zeus-parallel_tests init

This will create two files in your project:

  • custom_plan.rb
  • zeus.json

RVM

For RVM users it is recommended to install rubygems-bundler gem.

Usage

First follow instructions and prepare your application to use parallel_tests.

Launch another terminal and run zeus' master process:

$ bundle exec zeus start

Then you can run your parallel specs:

$ zeus parallel_rspec spec

or your cucumbers:

$ zeus parallel_cucumber features

What is supported?

  • rspec
  • cucumber
  • guard-rspec since v2.5.2 (just pass zeus: true and parallel: true into configuration hash, you can play with bundler: false option to speed things up)
  • caching: you must set config.cache_store = :memory_store as Zeus will not reload the various cache files used by parallel_tests instances

TODO

  • minitest support

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言