所以我设置了 RubyTest / Sublime Text 3 并且工作正常。我在让 spring 在 RubyTest 中工作时遇到问题。有这样一个神秘的设定:
"check_for_spring": false,
但是当我设置为 true 并运行测试时,它只会给我默认的 spring 命令输出,例如:
Version: 1.1.3
Usage: spring COMMAND [ARGS]
Commands for spring itself:
如果我关注此网址上的信息(https://github.com/rails/spring),调用测试的正确方法是?
bin/rake test test/functional/posts_controller_test.rb
现在我当前的测试运行设置是:
"run_ruby_unit_command": "ruby -Itest {relative_path}",
"run_single_ruby_unit_command": "ruby -Itest {relative_path} -n '{test_name}'",
如果我尝试更改为:
bin/rake test
这不起作用,即使我复制/粘贴命令路径并且它在 shell 中工作,也会给出命令未找到错误。
我没有想法帮助!
这就能解决问题
"run_ruby_unit_command": "export PATH=~/.rbenv/shims:$PATH; bin/rake test -Itest {relative_path}",
"run_single_ruby_unit_command": "export PATH=~/.rbenv/shims:$PATH; bin/rake test {relative_path} {test_name}",
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)