Windows 7 RubyTest未在Windows 7上输出测试结果

Windows 7 RubyTest未在Windows 7上输出测试结果,windows-7,ruby-test,Windows 7,Ruby Test,我在Windows7Pro上,尝试使用RubyTest和Sublime文本2。我已经安装好了。我在测试结果窗口中没有得到任何输出。例如,如果我运行一个测试,我会在控制台中看到以下内容: 正在运行bin/rspec spec\features\static\u pages\u spec.rb-l9 重新加载/C/Users/jgriffin/AppData/Roaming/Sublime Text 2/Packages/User/RubyTest.last run 如果我在Dos窗口的命令行中运行

我在Windows7Pro上,尝试使用RubyTest和Sublime文本2。我已经安装好了。我在测试结果窗口中没有得到任何输出。例如,如果我运行一个测试,我会在控制台中看到以下内容:

正在运行
bin/rspec spec\features\static\u pages\u spec.rb-l9
重新加载
/C/Users/jgriffin/AppData/Roaming/Sublime Text 2/Packages/User/RubyTest.last run

如果我在Dos窗口的命令行中运行它,它就会执行。 如果我在Git Bash窗口中的命令行中运行它,则不会

我宁愿跑出我的Bash窗口。我尝试在Bash和DOS命令窗口中从命令行运行subl,但结果似乎总是一样的。根本没有输出

我正在与:

ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

感谢您的帮助

您可能需要修改
用户-RubyTest.sublime设置
文件,以包含
bundle exec
前缀,如果您还没有通过sublime使其在Windows上工作。不久前我也有同样的问题。例如:

{
  "erb_verify_command": "bundle exec erb -xT - {file_name} | ruby -c",
  "ruby_verify_command": "bundle exec ruby -c {file_name}",

  "run_ruby_unit_command": "bundle exec ruby -Itest {relative_path}",
  "run_single_ruby_unit_command": "bundle exec ruby -Itest {relative_path} -n '{test_name}'",

  "run_cucumber_command": "bundle exec cucumber {relative_path}",
  "run_single_cucumber_command": "bundle exec cucumber {relative_path} -l{line_number}",

  "run_rspec_command": "bundle exec rspec {relative_path}",
  "run_single_rspec_command": "bundle exec rspec {relative_path} -l{line_number}",

  "ruby_unit_folder": "test",
  "ruby_cucumber_folder": "features",
  "ruby_rspec_folder": "spec",

  "ruby_use_scratch" : false,
  "save_on_run": false,
  "ignored_directories": [".git", "vendor", "tmp"]
}

我遇到了同样的问题,调试控制台中没有错误,实际控制台中没有输出

在我的例子中,我需要以管理员身份运行升华文本(升华文本>属性>兼容性>以管理员身份运行此程序)

然后我通过sublime文本重新运行测试,大约10秒后,它最终输出测试结果


我希望这有帮助。

发布一些代码,伙计?你还指望我们帮你什么?我查过文件了。我正在使用RSpec,并尝试了bundle exec和bin/RSpec。它们实际上都在命令行中为我工作。