2011-08-13 5 views
0

이것은 내가 이것에 관해 무엇을 할 수 있는지에 관해 나에게 죽음에 나를 절대적으로 괴롭 히고있다?Spork 출력을 정리하는 방법은 무엇입니까?

Guard is now watching at '/home/pma/Sites/somesite.com' 
Starting Spork for RSpec & Cucumber 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.9.0.rc9/lib/spork/test_framework/rspec.rb:2: warning: already initialized constant DEFAULT_PORT 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.9.0.rc9/lib/spork/test_framework/rspec.rb:3: warning: already initialized constant HELPER_FILE 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.9.0.rc9/lib/spork/test_framework/cucumber.rb:2: warning: already initialized constant DEFAULT_PORT 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.9.0.rc9/lib/spork/test_framework/cucumber.rb:3: warning: already initialized constant HELPER_FILE 
Using Cucumber 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.9.0.rc9/lib/spork/test_framework/rspec.rb:2: warning: already initialized constant DEFAULT_PORT 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.9.0.rc9/lib/spork/test_framework/rspec.rb:3: warning: already initialized constant HELPER_FILE 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.9.0.rc9/lib/spork/test_framework/cucumber.rb:2: warning: already initialized constant DEFAULT_PORT 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.9.0.rc9/lib/spork/test_framework/cucumber.rb:3: warning: already initialized constant HELPER_FILE 
Using RSpec 
Loading Spork.prefork block... 
Loading Spork.prefork block... 
Spork is ready and listening on 8989! 
Spork is ready and listening on 8990! 
Spork server for RSpec & Cucumber successfully started 
Running all features 
Disabling profiles... 
Disabling profiles... 
Exception encountered: #<Gherkin::Parser::ParseError: features/recruiting_goons.feature: Parse error at :6. Found feature when expecting one of: background, comment, scenario, scenario_outline, tag. (Current state: feature).> 
backtrace: 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/gherkin-2.4.6/lib/gherkin/parser/parser.rb:57:in `block in event' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/gherkin-2.4.6/lib/gherkin/parser/parser.rb:99:in `event' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/gherkin-2.4.6/lib/gherkin/parser/parser.rb:55:in `event' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/gherkin-2.4.6/lib/gherkin/parser/parser.rb:45:in `method_missing' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/gherkin-2.4.6/lib/gherkin/lexer/i18n_lexer.rb:23:in `scan' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/gherkin-2.4.6/lib/gherkin/lexer/i18n_lexer.rb:23:in `scan' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/gherkin-2.4.6/lib/gherkin/parser/parser.rb:31:in `parse' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/cucumber-1.0.2/lib/cucumber/feature_file.rb:37:in `parse' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/cucumber-1.0.2/lib/cucumber/runtime/features_loader.rb:28:in `block in load' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/cucumber-1.0.2/lib/cucumber/runtime/features_loader.rb:26:in `each' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/cucumber-1.0.2/lib/cucumber/runtime/features_loader.rb:26:in `load' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/cucumber-1.0.2/lib/cucumber/runtime/features_loader.rb:14:in `features' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/cucumber-1.0.2/lib/cucumber/runtime.rb:132:in `features' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/cucumber-1.0.2/lib/cucumber/runtime.rb:45:in `run!' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/cucumber-1.0.2/lib/cucumber/cli/main.rb:43:in `execute!' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.9.0.rc9/lib/spork/test_framework/cucumber.rb:24:in `run_tests' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.8.5/lib/spork/run_strategy/forking.rb:13:in `block in run' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.8.5/lib/spork/forker.rb:21:in `block in initialize' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.8.5/lib/spork/forker.rb:18:in `fork' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.8.5/lib/spork/forker.rb:18:in `initialize' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.8.5/lib/spork/run_strategy/forking.rb:9:in `new' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.8.5/lib/spork/run_strategy/forking.rb:9:in `run' 
/home/pma/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.8.5/lib/spork/server.rb:47:in `run' 
/home/pma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/drb/drb.rb:1558:in `perform_without_block' 
/home/pma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/drb/drb.rb:1518:in `perform' 
/home/pma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/drb/drb.rb:1592:in `block (2 levels) in main_loop' 
/home/pma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/drb/drb.rb:1588:in `loop' 
/home/pma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/drb/drb.rb:1588:in `block in main_loop' 
Guard::RSpec is running, with RSpec 2! 
Running all specs 

Gemfile.lock :

GEM 
    remote: http://rubygems.org/ 
    specs: 
    abstract (1.0.0) 
    actionmailer (3.0.9) 
     actionpack (= 3.0.9) 
     mail (~> 2.2.19) 
    actionpack (3.0.9) 
     activemodel (= 3.0.9) 
     activesupport (= 3.0.9) 
     builder (~> 2.1.2) 
     erubis (~> 2.6.6) 
     i18n (~> 0.5.0) 
     rack (~> 1.2.1) 
     rack-mount (~> 0.6.14) 
     rack-test (~> 0.5.7) 
     tzinfo (~> 0.3.23) 
    activemodel (3.0.9) 
     activesupport (= 3.0.9) 
     builder (~> 2.1.2) 
     i18n (~> 0.5.0) 
    activerecord (3.0.9) 
     activemodel (= 3.0.9) 
     activesupport (= 3.0.9) 
     arel (~> 2.0.10) 
     tzinfo (~> 0.3.23) 
    activeresource (3.0.9) 
     activemodel (= 3.0.9) 
     activesupport (= 3.0.9) 
    activesupport (3.0.9) 
    addressable (2.2.6) 
    arel (2.0.10) 
    bcrypt-ruby (2.1.4) 
    builder (2.1.2) 
    capybara (1.0.0) 
     mime-types (>= 1.16) 
     nokogiri (>= 1.3.3) 
     rack (>= 1.0.0) 
     rack-test (>= 0.5.4) 
     selenium-webdriver (~> 0.2.0) 
     xpath (~> 0.1.4) 
    childprocess (0.2.0) 
     ffi (~> 1.0.6) 
    cucumber (1.0.2) 
     builder (>= 2.1.2) 
     diff-lcs (>= 1.1.2) 
     gherkin (~> 2.4.5) 
     json (>= 1.4.6) 
     term-ansicolor (>= 1.0.5) 
    cucumber-rails (1.0.2) 
     capybara (>= 1.0.0) 
     cucumber (~> 1.0.0) 
     nokogiri (>= 1.4.6) 
    database_cleaner (0.6.7) 
    devise (1.4.2) 
     bcrypt-ruby (~> 2.1.2) 
     orm_adapter (~> 0.0.3) 
     warden (~> 1.0.3) 
    diff-lcs (1.1.2) 
    erubis (2.6.6) 
     abstract (>= 1.0.0) 
    factory_girl (2.0.1) 
    ffi (1.0.9) 
    gherkin (2.4.6) 
     json (>= 1.4.6) 
    guard (0.5.1) 
     thor (~> 0.14.6) 
    guard-cucumber (0.5.2) 
     cucumber (>= 0.10) 
     guard (>= 0.4.0) 
    guard-rails (0.0.3) 
     guard (>= 0.2.2) 
    guard-rspec (0.4.1) 
     guard (>= 0.4.0) 
    guard-sass (0.2.4) 
     guard (>= 0.2.1) 
     sass (>= 3.1) 
    guard-spork (0.2.1) 
     guard (>= 0.2.2) 
     spork (>= 0.8.4) 
    guard-test (0.3.0) 
     guard (>= 0.2.2) 
     test-unit (~> 2.2) 
    haml (3.1.2) 
    i18n (0.5.0) 
    json (1.5.3) 
    json_pure (1.5.3) 
    launchy (2.0.4) 
     addressable (~> 2.2.6) 
    libnotify (0.5.7) 
    mail (2.2.19) 
     activesupport (>= 2.3.6) 
     i18n (>= 0.4.0) 
     mime-types (~> 1.16) 
     treetop (~> 1.4.8) 
    mime-types (1.16) 
    nokogiri (1.5.0) 
    orm_adapter (0.0.5) 
    polyglot (0.3.2) 
    rack (1.2.3) 
    rack-mount (0.6.14) 
     rack (>= 1.0.0) 
    rack-test (0.5.7) 
     rack (>= 1.0) 
    rails (3.0.9) 
     actionmailer (= 3.0.9) 
     actionpack (= 3.0.9) 
     activerecord (= 3.0.9) 
     activeresource (= 3.0.9) 
     activesupport (= 3.0.9) 
     bundler (~> 1.0) 
     railties (= 3.0.9) 
    railties (3.0.9) 
     actionpack (= 3.0.9) 
     activesupport (= 3.0.9) 
     rake (>= 0.8.7) 
     rdoc (~> 3.4) 
     thor (~> 0.14.4) 
    rake (0.9.2) 
    rdoc (3.9.1) 
    rspec (2.6.0) 
     rspec-core (~> 2.6.0) 
     rspec-expectations (~> 2.6.0) 
     rspec-mocks (~> 2.6.0) 
    rspec-core (2.6.4) 
    rspec-expectations (2.6.0) 
     diff-lcs (~> 1.1.2) 
    rspec-mocks (2.6.0) 
    rspec-rails (2.6.1) 
     actionpack (~> 3.0) 
     activesupport (~> 3.0) 
     railties (~> 3.0) 
     rspec (~> 2.6.0) 
    rubyzip (0.9.4) 
    sass (3.1.7) 
    selenium-webdriver (0.2.2) 
     childprocess (>= 0.1.9) 
     ffi (>= 1.0.7) 
     json_pure 
     rubyzip 
    spork (0.8.5) 
    sqlite3 (1.3.4) 
    term-ansicolor (1.0.6) 
    test-unit (2.3.1) 
    thor (0.14.6) 
    treetop (1.4.10) 
     polyglot 
     polyglot (>= 0.3.1) 
    tzinfo (0.3.29) 
    warden (1.0.5) 
     rack (>= 1.0) 
    xpath (0.1.4) 
     nokogiri (~> 1.3) 

PLATFORMS 
    ruby 

DEPENDENCIES 
    capybara 
    cucumber-rails 
    database_cleaner 
    devise 
    factory_girl 
    guard 
    guard-cucumber 
    guard-rails 
    guard-rspec 
    guard-sass 
    guard-spork 
    guard-test 
    haml 
    launchy 
    libnotify 
    rails (= 3.0.9) 
    rspec-rails 
    sass 
    spork 
    sqlite3 

답변

1

난 정말 당신이 정리를 시도하는 출력 모르겠지만, 여기에 제가 보는 작업은 다음과 같습니다

당신은 표준 spork 메시지가 그 시작시에만 발생합니다. Spork is ready and listening on 8989!과 같은 시작 메시지는 spork이 파일 테스트를 시작할 준비가되었을 때 알려주기 때문에 좋은 것입니다.

두 번 이상 초기화되는 상수에 대한 일부 메시지가 표시됩니다. 이것은 당신이 필요하지 않을 때 당신이 무언가를 요구하고 있을지도 모르지만, 당신이 경비를 시작할 때만 당신이 그들을 볼 것이라고 추측하고 있습니다.

gherkin 문제는 recruiting_goons.feature 파일에 발생하며 서식 문제 일 수 있습니다. 테스트 결과가 잘못되었다는 것을 알려주기 때문에 결과를 원합니다.

0

비슷한 경고가 표시됩니다. Beerlington은 맞습니다. 제가 필요하지 않을 때 무언가를 요구했기 때문에 제 것이 있습니다. 즉, 각 모델 사양 파일에서 모델을 요구하고있었습니다. 모델을 명시 적으로 요구하지 않으면 부분 코드 커버리지 결과가 모델을 덮지 않고 잘못된 결과를 산출하게되므로 모델 스펙 만 단독으로 실행하기 때문에 그렇게했습니다. 내 사양에서 "요구하는 '모델'라인을 제거했을 때 경고가 사라졌습니다. 필자가 명시 적으로 언급 한 파일 이름은 필자의 모델 이름이었습니다. 필자 이름은 "필수"로 중복되었습니다.

그물 네트워크에서 "rspec.rb"및 "cucumber.rb"파일을 여러 번 사용해야하는 이유를 찾으십시오. 단 한번만 요구하십시오.

관련 문제