2012-07-11 22 views
1

我使用Cucumber來測試我的Rails應用程序,並且感謝運行Spork,我不必每次運行場景時就啓動整個Rails應用程序。TextMate,Cucumber&Spork:使用** HTML輸出運行功能**?

我在TextMate中設置了TM_CUCUMBER_OPTS爲​​,它工作正常,但會導致結果的格式不正確:它只是文本,不再是HTML。

有什麼辦法解決這個問題?我試過--format = html,但是結果如下:

Running: /Users/josh/.rvm/bin/rvm-auto-ruby /Users/josh/Documents/Work/Sientia/iq/script/cucumber 
/Users/josh/Documents/Work/Sientia/iq/features/authorization/sign_out.feature --drb --format=html 
    Using the default profile... 
    Disabling profiles... 
    Exception encountered: #<RuntimeError: All but one formatter must use --out, only one can print to each stream (or STDOUT)> 
    backtrace: 
    /Users/josh/.rvm/gems/[email protected]/gems/cucumber-1.2.1/lib/cucumber/cli/configuration.rb:198:in `arrange_formats' 
    /Users/josh/.rvm/gems/[email protected]/gems/cucumber-1.2.1/lib/cucumber/cli/configuration.rb:26:in `parse!' 
    /Users/josh/.rvm/gems/[email protected]/gems/cucumber-1.2.1/lib/cucumber/cli/main.rb:55:in `configuration' 
    /Users/josh/.rvm/gems/[email protected]/gems/cucumber-1.2.1/lib/cucumber/cli/main.rb:63:in `run_drb_client' 
    /Users/josh/.rvm/gems/[email protected]/gems/cucumber-1.2.1/lib/cucumber/cli/main.rb:34:in `execute!' 
    /Users/josh/.rvm/gems/[email protected]/gems/spork-0.9.2/lib/spork/test_framework/cucumber.rb:24:in `run_tests' 
    /Users/josh/.rvm/gems/[email protected]/gems/spork-0.9.2/lib/spork/run_strategy/forking.rb:13:in `block in run' 
    /Users/josh/.rvm/gems/[email protected]/gems/spork-0.9.2/lib/spork/forker.rb:21:in `block in initialize' 
    /Users/josh/.rvm/gems/[email protected]/gems/spork-0.9.2/lib/spork/forker.rb:18:in `fork' 
    /Users/josh/.rvm/gems/[email protected]/gems/spork-0.9.2/lib/spork/forker.rb:18:in `initialize' 
    /Users/josh/.rvm/gems/[email protected]/gems/spork-0.9.2/lib/spork/run_strategy/forking.rb:9:in `new' 
    /Users/josh/.rvm/gems/[email protected]/gems/spork-0.9.2/lib/spork/run_strategy/forking.rb:9:in `run' 
    /Users/josh/.rvm/gems/[email protected]/gems/spork-0.9.2/lib/spork/server.rb:48:in `run' 
    /Users/josh/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1548:in `perform_without_block' 
    /Users/josh/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1508:in `perform' 
    /Users/josh/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1586:in `block (2 levels) in main_loop' 
    /Users/josh/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1582:in `loop' 
    /Users/josh/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1582:in `block in main_loop' 

有關如何解決這個問題的任何想法?謝謝。

回答