
이 패키지Sublime Text 2 내에서 rspec 및 기타 테스트 프레임워크의 테스트를 실행할 수 있습니다. Minitest 테스트를 테스트하는 비슷한 방법이 있습니까? 결론적으로 아무것도 찾지 못했습니다.
답변1
가능합니다. Sublime Text 2 +를 사용하고 있습니다.루비테스트Rails 4.1.5/ruby 2.1.2가 포함된 패키지이지만 다른 Rails 4+ 버전에서도 작동합니다.
Sublime에서 으로 이동 Preferences > Package Settings > RubyTest > Settings - Default
하거나 검색하세요 RubyTest.sublime-settings
.
ruby_unit 명령의 경로를 조정해야 합니다(minitest에서 작동함).
"run_ruby_unit_command": "rake test {relative_path}",
"run_single_ruby_unit_command": "rake test {relative_path} {test_name}",
스프링을 사용하는 경우 spring
각 레이크에 앞서 추가를 수정할 수 있습니다.
"run_ruby_unit_command": "spring rake test {relative_path}",
"run_single_ruby_unit_command": "spring rake test {relative_path} {test_name}",
또는 bin/rake
스프링 빈이 있는 경우
"run_ruby_unit_command": "bin/rake test {relative_path}",
"run_single_ruby_unit_command": "bin/rake test {relative_path} {test_name}",
파일을 저장하고 Sublime을 다시 시작하면(꼭 그럴 필요는 없었음) 제대로 작동할 것입니다.