【问题标题】:Speed of RubyTest in SublimeText 2SublimeText 2 中 RubyTest 的速度
【发布时间】:2013-09-16 22:11:14
【问题描述】:

在 SublimeText 中使用 RubyTest 我得到了

在 0.24053 秒内完成 6 个示例,0 次失败

使用种子 6928 随机化

[6.4s 完成]

但在虚拟机中(在带有 bundle exec rspec 的控制台中)速度是

在 0.50997 秒内完成 6 个示例,0 次失败

用种子 4758 随机化

正常吗?

更改后"run_rspec_command": "bundle exec rspec {relative_path} --drb"我得到了

No DRb server is running. Running in local process instead ...
Finished in 0.21903 seconds
6 examples, 0 failures

Randomized with seed 12822

[Finished in 6.9s]

【问题讨论】:

    标签: rspec sublimetext2 ruby-test


    【解决方案1】:

    浏览至 - Sublime:首选项 -> 包设置 -> RubyTest -> 设置 - 默认。

    在那个文件中,改变

    "run_rspec_command": "rspec {relative_path}" 
    

    "run_rspec_command": "bundle exec rspec {relative_path} --drb"
    

    现在尝试执行它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-11-22
      • 2013-08-28
      • 1970-01-01
      • 2012-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多