2012-12-04 2 views
3

나는 Rails 3.2 프로젝트에 spork-rails와 spork-minitest가 설치되어 있습니다. 나는 또한 rake test:integration 명령으로 성공적으로 (아주 천천히) 실행되는 통합 테스트를 가지고있다.spoke 및 minitest : testdrb가 SystemExit 예외로 종료합니다

이제 spork 포트 8988에서 실행, 나는 testdrb을 통해 테스트를 실행하려고 :

Running tests with args ["-Itest/", "test/integration/admin/user_test.rb"]... 
Run options: 

# Running tests: 

Finished tests in 1.551147s, 0.6447 tests/s, 0.6447 assertions/s. 

1 tests, 1 assertions, 0 failures, 0 errors, 0 skips 
Done. 

은 본질적으로 모든 것이 :

$ bundle exec testdrb -Itest test/integration/**/*_test.rb 
No examples found. 

Finished in 0.00141 seconds 
0 examples, 0 failures 

Randomized with seed 35511 

Exception encountered: #<SystemExit: exit> 
backtrace: 
/home/mike/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:326:in `exit' 
/home/mike/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun' 
/home/mike/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:27:in `run_once' 
/home/mike/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun' 
/home/mike/.rvm/gems/[email protected]/gems/spork-1.0.0rc3/lib/spork.rb:77:in `call' 
/home/mike/.rvm/gems/[email protected]/gems/spork-1.0.0rc3/lib/spork.rb:77:in `exec_after_each_run' 
/home/mike/.rvm/gems/[email protected]/gems/spork-1.0.0rc3/lib/spork/run_strategy/forking.rb:14:in `block in run' 
/home/mike/.rvm/gems/[email protected]/gems/spork-1.0.0rc3/lib/spork/forker.rb:21:in `block in initialize' 
/home/mike/.rvm/gems/[email protected]/gems/spork-1.0.0rc3/lib/spork/forker.rb:18:in `fork' 
/home/mike/.rvm/gems/[email protected]/gems/spork-1.0.0rc3/lib/spork/forker.rb:18:in `initialize' 
/home/mike/.rvm/gems/[email protected]/gems/spork-1.0.0rc3/lib/spork/run_strategy/forking.rb:9:in `new' 
/home/mike/.rvm/gems/[email protected]/gems/spork-1.0.0rc3/lib/spork/run_strategy/forking.rb:9:in `run' 
/home/mike/.rvm/gems/[email protected]/gems/spork-1.0.0rc3/lib/spork/server.rb:48:in `run' 
/home/mike/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/drb/drb.rb:1548:in `perform_without_block' 
/home/mike/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/drb/drb.rb:1508:in `perform' 
/home/mike/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/drb/drb.rb:1586:in `block (2 levels) in main_loop' 
/home/mike/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/drb/drb.rb:1582:in `loop' 
/home/mike/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/drb/drb.rb:1582:in `block in main_loop' 

한편, Spork 단말기는 성공적인 테스트 실행은 출력 이 SystemExit 오류를 제외한 작업. 최소한의 자동 실행 코드 인 에서 나온 것으로 보이며 at_exit 핸들러를 설치 한 다음 해당 핸들러 내에서 exit()를 호출합니다. 이 오류를 없애기 위해 할 수있는 일이 있습니까?

답변

-1

/home/mike/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:326:in

파일에서 코드를 확인하거나 게시 할 수 있습니까?

종료 오타가있을 수 있습니다.

내가 코드를보기 전에 100 %하지 않고, 당신은 터미널에서 출구를 입력하지만 파일에 입력 실수로했고 그

+0

그냥 한 달 전에 그것을 게시 한 실현을 일으키는 무엇 :) – PericlesTheo

관련 문제