【问题标题】:How to autorun RSpec in textmate如何在 textmate 中自动运行 RSpec
【发布时间】:2013-08-05 11:23:23
【问题描述】:

我正在构建一个简单的 Sinatra 应用程序。

我正在使用 Textmate (1.5.11) 并已成功安装 RSpec 包 (https://github.com/rspec/rspec-tmbundle)

目前 RSpec Textmate 包工作正常,但我不喜欢手动触发我的 spec 文件夹中所有测试的执行。

我已经运行了guard-rspec(带有咆哮通知),但我想触发 Textmate RSpec 捆绑包 - 它是一个不错的 UI,并以我喜欢的格式显示所有测试结果信息。

有没有办法将 Textmate + RSpec 包配置为在保存 .rb 文件时自动运行?

谢谢。

【问题讨论】:

标签: ruby rspec sinatra textmate


【解决方案1】:

你可以去 http://ruby.railstutorial.org/chapters/static-pages#sec-guard安装Guard

3.6.2 使用 Guard 进行自动化测试

那么你也可以添加

http://jam.im/blog/2013/02/11/mac-osx-notifications-with-guard/

带有 Guard 的 Mac OSX 通知

所以你不必使用咆哮通知

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-19
    相关资源
    最近更新 更多