2017-03-09 6 views
0

"레이크 exec 레이크 테스트"가 성공적으로 완료되지만 CircleCI에서 실행하면 모든 테스트가 끝난 후 끝에 실패합니다. O.oRails 5로 업그레이드 한 후 CircleCI의 레이크 테스트 중에

방금 ​​레일스 4.2.6에서 레일즈 5로 업그레이드했는데,이 전에는 괜찮 았어. 내가 가지고 있지 않은 테스트 폴더를 찾고 있습니다. rspec을 사용하기 때문에 spec 폴더가 있습니다.

Finished in 28.48 seconds (files took 3.67 seconds to load) 
    329 examples, 0 failures 

    Coverage report generated for RSpec to /tmp/circle-artifacts.PrVAaqN/coverage. 1425/1477 LOC (96.48%) covered. 
    rake aborted! 
    LoadError: cannot load such file -- /home/ubuntu/app_name/test 
    /home/ubuntu/app_name/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:293:in `require' 
/home/ubuntu/app_name/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:293:in `block in require' 
/home/ubuntu/app_name/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:259:in `load_dependency' 
/home/ubuntu/app_name/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:293:in `require' 
/home/ubuntu/app_name/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/test_unit/test_requirer.rb:11:in `block in require_files' 
/home/ubuntu/app_name/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/test_unit/test_requirer.rb:10:in `each' 
/home/ubuntu/app_name/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/test_unit/test_requirer.rb:10:in `require_files' 
/home/ubuntu/app_name/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:62:in `rake_run' 
/home/ubuntu/app_name/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/test_unit/testing.rake:15:in `block in <top (required)>' 
/home/ubuntu/app_name/vendor/bundle/ruby/2.3.0/gems/rake-11.3.0/exe/rake:27:in `<top (required)>' 
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.14.6/lib/bundler/cli/exec.rb:74:in `load' 
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.14.6/lib/bundler/cli/exec.rb:74:in `kernel_load' 
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.14.6/lib/bundler/cli/exec.rb:27:in `run' 
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.14.6/lib/bundler/cli.rb:335:in `exec' 
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' 
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' 
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch' 
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.14.6/lib/bundler/cli.rb:20:in `dispatch' 
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start' 
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.14.6/lib/bundler/cli.rb:11:in `start' 
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.14.6/exe/bundle:32:in `block in <top (required)>' 
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.14.6/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors' 
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.14.6/exe/bundle:24:in `<top (required)>' 
/home/ubuntu/.rvm/gems/[email protected]/bin/bundle:22:in `load' 
/home/ubuntu/.rvm/gems/[email protected]/bin/bundle:22:in `<main>' 
/home/ubuntu/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `eval' 
/home/ubuntu/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `<main>' 
+0

그래서 나는 그것을 다른 컴퓨터와 보석에 설치하고,이 컴퓨터에서 같은 것을 로컬로 사용하고 있습니다. 그래서 다른 사람들이 가지고 있지 않은 원래 기계에서해야 할 일이 있습니다. 보석 문제는 어쩌면? – Corey

+0

"Execute test"에서 실패하지만 이미 spec을 실행했습니다. – Corey

답변

0

레이크 작업 명명과 충돌이있는 것으로 보입니다. 우선, 우리는 더 이상 레이크를 사용하지 않아도 작동합니다. 레일 커맨드로 바뀌 었습니다. '테스트'의 기본 레이크/레일 작업은 모든 것을 엉망으로 만드는 것처럼 보였습니다. 작업 이름을 rspec으로 변경하면 모든 작업이 수정되었습니다. 그것은 지금 할 것입니다.