Minitest 당신이 날 지연 진단하고 정정 할 수 있습니다 3 개 테스트 실행 52 초 취하고있다 : 시험 문제왜 Minitest가 너무 느리게 실행됩니까?
time bin/rake test
Running via Spring preloader in process 6302
Run options: --seed 53674
# Running:
...
Finished in 0.981134s, 3.0577 runs/s, 3.0577 assertions/s.
3 runs, 3 assertions, 0 failures, 0 errors, 0 skips
real 0m52.954s
user 0m0.431s
sys 0m0.148s
아무것도를, 내가 그것을 테스트 설정 문제 같아요? 여기 테스트 코드 : 여기에
실제 시험 :
require 'test_helper'
class StaticPagesControllerTest < ActionDispatch::IntegrationTest
test "should get home" do
get static_pages_home_url
assert_response :success
assert_select "title", "Home | Ruby on Rails Tutorial"
end
test "should get help" do
get static_pages_help_url
assert_response :success
assert_select "title", "Help | Ruby on Rails Tutorial"
end
test "should get about" do
get static_pages_about_url
assert_response :success
assert_select "title", "About | Ruby on Rails Tutorial"
end
end
나는
spring stop
를 실행하지만, 이것은 어떤 방식으로 일을 가속화하지 않았다.
내 앱에는 spring
디렉토리가 없습니다.
3 단 어설 ... 테스트를 보여주십시오. – fbelanger